34.5 Glade GNOME Support

The Enable GNOME Support check button causes glade to generate the appropriate calls to initialise a GNOME application (rather than a Gtk+ application). For a GNOME project this should always be enabled. C Options

The C Options dialog relates specifically to the generation of C source code for your project. Here you set various options relating to the generated code, the files that are to be generated, and their names. General Options

The first general option indicates whether glade should generate code to support the GNU gettext library so as to support internationalisation. It is a good idea to leave this on (which is the default). Internationalising your application is an important step in making your application user friendly.

The Set Widget Names check button is used to tell glade to generate code to set the names of all widgets in your interface. This is relevant if you find that you want to use the Gtk+ function gtk_widget_path().

The Backup Source Files check button will cause glade to copy files to .bak backup files before overwriting them. This applies to the .glade file and also to the source code files. File Output Options Interface Creation Functions Signal Handling & Callback Functions Support Functions LibGlade Options

The LibGlade Options includes just two parameters: whether to save translatable strings into a separate C source file, and if so, what file to save them in. This will facilitate the translation of interfaces loaded by libglade. This option is important if you are using libglade and you wish to internationalise your application. Details here

34.5.1 Widget Properties

34.5.2 Widget Palettes

List all of the widgets provided by each palette and basic description and functionality. The GTK Basic Widgets The GTK Additional Widgets The GNOME Widgets The GnomeApp

The GnomeApp widget is the basic GNOME application root window. It provides some standard menus, toolbar buttons and a status bar. The canvas area between the toolbar and the status bar is where you will layout your application. See page  for an example of the GnomeApp. The GnomeDruid

The GnomeDruid is the Wizard-like widget that has a sequence of windows with Next and Back buttons and a Finish button on the final window of the sequence. The GnomeDruid widget has a stylised start page (GnomeDruidPageStart widget) and a stylised finish page (GnomeDruidPageFinish widget) and in between is a collection of pages where information from the user can be obtained (GnomeDruidPageStandard widgets).

On the start and finish pages you can only supply a title and some text. These pages are information pages and are not used to obtain responses from the user. The pages in between include a GtkVBox in which you can add your own widgets.

34.5.3 The Glade Save Format

Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0