[Glade-users] merging trees

Le mar 22/04/2003 � 18:21, Xavier Bestel a �crit :

I made a .glade file with 2 windows. I instantiate one of the windows
(an empty GnomeApp widget) using glade_xml_get_widget(glade_xml_new()),
then I instantiate a widget from the second window. When I try to add
the widget to the 1st window (with gnome_app_set_contents()), I get a
segfault. Is there something special to do beforehand ? Is it at all
possible ?

glade file contains appwindow and dummy_window which contains main_table

I do
      appwindow = glade_xml_get_widget(glade_xml_new("xav.glade", "appwindow", NULL), "appwindow");
      project->xml = glade_xml_new("xav.glade", "main_table", NULL);
      project->main_table = glade_xml_get_widget(project->xml, "main_table");

      gnome_app_set_contents(GNOME_APP(appwindow), project->main_table);

Kaboom !

I must add that is I remove the gnome_app_set_content() call, the
segfault isn't there. Could someone help me with this ?


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