Added directory with Glade catalog

This catalog can be used to work with GTK+'s private widget types,
this patch exposes a private function gtk_glade_catalog_init() which
Glade will use for the sole purpose of initializing some private widget
types in GTK+ that are referenced from various GTK+ composite widget
xml files.
This commit is contained in:
Tristan Van Berkom
2013-03-25 01:40:57 +09:00
parent 3b7fc8cdc9
commit a41c628a3b
5 changed files with 107 additions and 0 deletions

17
gtk/glade/README.glade Normal file
View File

@ -0,0 +1,17 @@
The catalog in this directory defines some widgets that are private
to GTK+ and is needed to edit .ui files defining composite classes
in GTK+.
In order to edit any composite classes in GTK+, startup Glade
in the following way, example:
cd /path/to/gtk+/
GLADE_CATALOG_SEARCH_PATH=`pwd`/gtk/glade glade gtk/gtkfilechooserdefault.ui
Documentation for updating this catalog can be found here:
https://developer.gnome.org/gladeui/stable/
Note also that when including private GTK+ widgets as components, it is
important to call g_type_ensure () to register the type explicitly
before calling gtk_container_init_template(), otherwise GtkBuilder will
not be able to properly load the type.