[glade/gbinding: 12/60] Output <binding> tags after <property> tags in the output
- From: Denis Washington <denisw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/gbinding: 12/60] Output <binding> tags after <property> tags in the output
- Date: Tue, 13 Dec 2011 07:00:29 +0000 (UTC)
commit 753463e73dec0a1ca369f495cc73b369bef6b863
Author: Denis Washington <denisw src gnome org>
Date: Fri Jun 10 10:39:24 2011 +0200
Output <binding> tags after <property> tags in the output
gladeui/glade-widget-adaptor.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/gladeui/glade-widget-adaptor.c b/gladeui/glade-widget-adaptor.c
index 27070a9..f860b02 100644
--- a/gladeui/glade-widget-adaptor.c
+++ b/gladeui/glade-widget-adaptor.c
@@ -1082,7 +1082,8 @@ glade_widget_adaptor_object_write_widget (GladeWidgetAdaptor * adaptor,
GladeXmlNode * node)
{
GList *props;
-
+ GSList *bindings = NULL, *b;
+
/* Write the properties */
for (props = glade_widget_get_properties (widget); props; props = props->next)
{
@@ -1095,8 +1096,14 @@ glade_widget_adaptor_object_write_widget (GladeWidgetAdaptor * adaptor,
glade_property_write (GLADE_PROPERTY (props->data), context, node);
if (binding)
- glade_binding_write (binding, context, node);
+ bindings = g_slist_prepend (bindings, binding);
}
+
+ /* Write the bindings */
+ for (b = bindings; b; b = b->next)
+ glade_binding_write (b->data, context, node);
+
+ g_slist_free (bindings);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]