[Glade-devel] [patch, glade3] fix loading of widget from xml



--=-DU3ecKixIsCjHmy/kDvT
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi!

I found this when I saw my close-project path didn't work with loaded
files (after this it works), but I think it's a problem which may affect
other things:

glade_project_new_from_node was supposed to load a project from a xml
file, but it actually never added the widgets to the project->widgets!

Fix below, seems obvius, but check anyway since I am a xml idiot ;)

ciao
        paolo



--=-DU3ecKixIsCjHmy/kDvT
Content-Disposition: attachment; filename=fix_widget_load.patch
Content-Type: text/x-patch; name=fix_widget_load.patch; charset=UTF-8
Content-Transfer-Encoding: 7bit

diff -upr gnome2/glade3/ChangeLog glade3/ChangeLog
--- gnome2/glade3/ChangeLog     2003-05-05 14:11:33.000000000 +0200
+++ glade3/ChangeLog    2003-05-08 21:07:19.000000000 +0200
@@ -1,3 +1,8 @@
+2003-05-08  Paolo Borelli  <pborelli katamail com>
+
+       * src/glade-project.c: fix glade_project_new_from_node so that it 
+       actually loads widgets from xml files.
+
 2003-05-04  Paolo Borelli  <pborelli katamail com>
 
        * src/glade-editor.[ch]: gtk_object -> g_object conversion
diff -upr gnome2/glade3/src/glade-project.c glade3/src/glade-project.c
--- gnome2/glade3/src/glade-project.c   2003-05-05 14:11:36.000000000 +0200
+++ glade3/src/glade-project.c  2003-05-08 21:03:07.000000000 +0200
@@ -557,6 +557,7 @@ glade_project_new_from_node (GladeXmlNod
                widget = glade_widget_new_from_node (child, project);
                if (widget == NULL)
                        return NULL;
+               project->widgets = g_list_append (project->widgets, widget);
        }
        project->widgets = g_list_reverse (project->widgets);
 

--=-DU3ecKixIsCjHmy/kDvT--





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]