[gtk+/composite-templates-new: 7/20] Added directory with Glade catalog
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/composite-templates-new: 7/20] Added directory with Glade catalog
- Date: Tue, 26 Mar 2013 07:41:37 +0000 (UTC)
commit 8ec92662c437c648c3943693873f4c1ad19fa174
Author: Tristan Van Berkom <tristanvb openismus com>
Date: Mon Mar 25 01:40:57 2013 +0900
Added directory with Glade catalog
This catalog can be used to work with GTK+'s private widget types.
gtk/glade/README.glade | 17 +++++++++++++++++
gtk/glade/private-widgets.xml | 24 ++++++++++++++++++++++++
2 files changed, 41 insertions(+), 0 deletions(-)
---
diff --git a/gtk/glade/README.glade b/gtk/glade/README.glade
new file mode 100644
index 0000000..f8c59c5
--- /dev/null
+++ b/gtk/glade/README.glade
@@ -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.
diff --git a/gtk/glade/private-widgets.xml b/gtk/glade/private-widgets.xml
new file mode 100644
index 0000000..9869493
--- /dev/null
+++ b/gtk/glade/private-widgets.xml
@@ -0,0 +1,24 @@
+<glade-catalog name="gtkprivate" version="3.10" depends="gtk+">
+ <glade-widget-classes>
+ <!-- For the path bar, just take a GtkEventBox and disable it's properties, a GtkPathBar technically
+ derives from GtkContainer
+ -->
+ <glade-widget-class name="GtkPathBar" generic-name="pathbar" title="Path Bar" parent="GtkEventBox"
+ icon-name="widget-gtk-toolbar">
+ <properties>
+ <property id="visible-window" disabled="True"/>
+ <property id="above-child" disabled="True"/>
+ </properties>
+ </glade-widget-class>
+ <glade-widget-class name="GtkScaleButtonScale" generic-name="scalebuttonscale" title="Scale Button
Scale" parent="GtkScale"/>
+ <glade-widget-class name="ShortcutsPaneModelFilter" generic-name="shortcutsfilter" title="Shortcuts
Filter"
+ parent="GtkTreeModelFilter" icon-name="widget-gtk-treemodelfilter">
+ </glade-widget-class>
+ </glade-widget-classes>
+
+ <glade-widget-group name="gtk-private" title="Private GTK+ Classes">
+ <glade-widget-class-ref name="GtkScaleButtonScale"/>
+ <glade-widget-class-ref name="GtkPathBar"/>
+ <glade-widget-class-ref name="ShortcutsPaneModelFilter"/>
+ </glade-widget-group>
+</glade-catalog>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]