[Glade-users] Re: Widget insert problem with libglade



Hi,

From gdb:
#0  0x0000002a975e4593 in g_type_check_instance_is_a () from /usr/lib/libgobject-2.0.so.0
#1  0x0000002a975d15f4 in g_object_ref () from /usr/lib/libgobject-2.0.so.0
#2  0x0000002a9683bee1 in gtk_widget_show () from /usr/lib/libgtk-x11-2.0.so.0

I made any modifies to start code:

vbox = glade_xml_get_widget (xml_glade, "vbox");

my vbox now is designed with four elements inside. I want append a fifth element and so:

label = gtk_label_new("try");
gtk_widget_show (label);
gtk_box_pack_start(GTK_BOX (vbox), label,TRUE, TRUE, 0);

and it's not work. But with:

label = gtk_label_new("try");
gtk_widget_show (label);
gtk_box_pack_start(GTK_BOX (vbox), label,TRUE, TRUE, 0);

label = gtk_label_new("try");
gtk_widget_show (label);
gtk_box_pack_start(GTK_BOX (vbox), label,TRUE, TRUE, 0);

it works. That's if I add two times new widget!
It drives me crazy!
Have you any idea to solve it?

Thank you very much
Giulio
 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Novit� per telefonare risparmiando: Email.it Phone Card, clicca e scopri i vantaggi
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2689&d=28-4




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