[glade/glade-3-10] * plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Ensure 'related-action' and 'use-action-appe
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/glade-3-10] * plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Ensure 'related-action' and 'use-action-appe
- Date: Tue, 4 Oct 2011 22:10:53 +0000 (UTC)
commit bcce96b13186eb083bd0084755c7b66e93cb662c
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Tue Oct 4 18:08:53 2011 -0400
* plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Ensure 'related-action'
and 'use-action-appearance' are serialized in the right order.
ChangeLog | 5 +++++
plugins/gtk+/glade-gtk.c | 16 +++++++++++++++-
plugins/gtk+/gtk+.xml.in | 5 +++--
3 files changed, 23 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a2989b0..a4494a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-10-04 Tristan Van Berkom <tvb gnome org>
+
+ * plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Ensure 'related-action'
+ and 'use-action-appearance' are serialized in the right order.
+
2011-04-29 Javier JardÃn <jjardon gnome org>
* gladeui/glade-utils.c: Correctly detect the required devhelp version
diff --git a/plugins/gtk+/glade-gtk.c b/plugins/gtk+/glade-gtk.c
index b10521d..585f84e 100644
--- a/plugins/gtk+/glade-gtk.c
+++ b/plugins/gtk+/glade-gtk.c
@@ -618,13 +618,27 @@ glade_gtk_widget_write_widget (GladeWidgetAdaptor * adaptor,
GladeWidget * widget,
GladeXmlContext * context, GladeXmlNode * node)
{
+ GladeProperty *prop;
+
if (!glade_xml_node_verify (node, GLADE_XML_TAG_WIDGET))
return;
+ /* Make sure use-action-appearance and related-action properties are
+ * ordered in a sane way */
+ if (GTK_IS_ACTIVATABLE (glade_widget_get_object (widget)))
+ {
+ prop = glade_widget_get_property (widget, "use-action-appearance");
+ if (prop)
+ glade_property_write (prop, context, node);
+
+ prop = glade_widget_get_property (widget, "related-action");
+ if (prop)
+ glade_property_write (prop, context, node);
+ }
+
/* First chain up and read in all the normal properties.. */
GWA_GET_CLASS (G_TYPE_OBJECT)->write_widget (adaptor, widget, context, node);
- /* The core takes care of signals */
glade_gtk_write_accels (widget, context, node, TRUE);
glade_gtk_widget_write_atk_props (widget, context, node);
}
diff --git a/plugins/gtk+/gtk+.xml.in b/plugins/gtk+/gtk+.xml.in
index 3676ebf..4ce6056 100644
--- a/plugins/gtk+/gtk+.xml.in
+++ b/plugins/gtk+/gtk+.xml.in
@@ -526,8 +526,8 @@ embedded in another object</_tooltip>
<property id="use-underline" _name="Use Underline" since="2.16"/>
<!-- GtkActivatable -->
- <property id="related-action" _name="Related Action" custom-layout="True" since="2.16"/>
- <property id="use-action-appearance" _name="Use Action Appearance"
+ <property id="related-action" _name="Related Action" custom-layout="True" since="2.16" save="False"/>
+ <property id="use-action-appearance" _name="Use Action Appearance" save="False"
custom-layout="True" needs-sync="True" default="False" since="2.16"/>
<!-- Atk click property -->
@@ -2199,6 +2199,7 @@ embedded in another object</_tooltip>
<glade-widget-class name="GtkTreeView" generic-name="treeview" _title="Tree View">
+ <post-create-function>empty</post-create-function>
<add-child-verify-function>glade_gtk_treeview_add_verify</add-child-verify-function>
<child-set-property-function>glade_gtk_treeview_set_child_property</child-set-property-function>
<child-get-property-function>glade_gtk_treeview_get_child_property</child-get-property-function>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]