Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go


Project Options


The Project Options dialog allows you to tune many aspects of the project you are developing with Glade. The types of options fall under three tabs: General, C Options, and LibGlade Options.


Image glade-project-options
The General options cover the project location, project names, programming language, and if to support Gnome.

Basic Options

The Project Directory lists the directory in which the saved project file will be stored. This is also where the built source code will be written. Use the Browse button to identify a directory using a File Selection Dialog (which allows you to also create directories if you wish). As you change the Project Directory the Project Name, Program Name, and Project File values will also change, unless you have already changed these other fields separately to give them a different name.

When you save or build a project the directories will be silently created as needed.

The Project Name is the name of your project. This will be used as the title of the main application window you create (the Gnome Application Window). The name can have spaces and other characters. As you change the name of the project the Program Name, and Project File fields also change to reflect your project name (with spaces and other non-alphanumeric characters converted to dashes).

The Program Name is the name by which the final executable program will be known. This is used by Glade to name the output executable file in the Makefile it generates. Once again, as you change this field the following field (Project File) automatically changes to be the same. The previous fields do not change.

The Project File is then the file located in the Project Directory in which the interface is saved. This file has the extension .glade and is a gzip'ed XML document that records all of the project information. See Section 31.4.7 for details.


The Subdirectories fields indicate where Glade should place source code files it generates (Source Directory) and where Glade should place any pixmaps (graphics) used in the project (Pixmaps Directory). These subdirectories are located in the Project Directory and are silently created by Glade when it builds the project.


A choice of languages is available under Language. Only one can be chosen at a time. The choice tells Glade what to do when the Build button or menu is chosen. See Section 31.4.3 for details. The choices are C, C++, Ada95, Perl, and Eiffel. Note that this is not relevant when using as the conversion is effectively performed at run time.


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

Image glade-project-options-c
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

Image glade-project-options-libglade
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 . This option is important if you are using and you wish to internationalise your application. Details here

Support further development by purchasing the PDF version of the book.
Other online resources include the Data Science Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 1995-2020 Togaware Pty Ltd. Creative Commons ShareAlike V4.