[glade/gbinding] Output <binding> tags after <property> tags in the output



commit 44f9947c8536dd6d5c8decc2f0d52d2f50b3b93c
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 d2cd4e0..4384c3b 100644
--- a/gladeui/glade-widget-adaptor.c
+++ b/gladeui/glade-widget-adaptor.c
@@ -1056,7 +1056,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)
     {
@@ -1069,8 +1070,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]