The Official GNOME 2 Developers Guide

3.2 Windows

There is a window in Section 3.1.3's example program; you can see that it is a container widget object of the GtkWindow class (type identifier: GTK_TYPE_WINDOW ).

To set a window's title, write a string into its title property. The user should be able to distinguish the window's title in a list of windows (for example, in a window manager menu). An application window's title ideally stems from the document currently in that window ” a filename, directory, or similar. If you insist on including the application name in the title, place it after the document name, but GNOME guidelines advise even against this. Any other information in the title bar is essentially a waste of space. [1]

Here are several versions of the same title and how they rank:

If a window doesn't contain a document, the naming conventions are somewhat different:

Significant GtkWindow properties and their types include the following:

3.2.1 Icons

In any polished application, you should outfit your window with an icon that appears in the window list and other places. These routines install icons:

[1] GNOME has functions to keep application window titles consistent ” see Section 4.3.1.

Категории