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

Why don't I get my Vbox ???



I am encountering something weird...

I am doing the following:

...
mot_setup_box=mot_new_setup_widget();
gtk_table_attach_defaults(GTK_TABLE(main_table), mot_setup_box, 1, 2, 0,
2);
...

where the function looks as follows:


GtkWidget *mot_new_setup_widget(void)
{
 GtkWidget *vbox_a;
 GtkWidget *check_enable;
 GtkWidget *check_reset;
 GtkWidget *dummybutton;
 
 vbox_a=gtk_vbox_new(TRUE, 1);
 dummybutton=gtk_button_new_with_label("Test");
 
 check_enable = gtk_check_button_new_with_label("Enable");
 gtk_box_pack_start(GTK_BOX(vbox_a), check_enable, FALSE, FALSE, 0);
 
 check_reset  = gtk_check_button_new_with_label("Reset");
 gtk_box_pack_start(GTK_BOX(vbox_a), check_reset, FALSE, FALSE, 0);
 
 return vbox_a;
}

if I return vbox_a from this function then I don't see the
checkbuttons.  If i return dummybutton then i see the button.  What am I
doing wrong here ???

tnx


-- 
Bart Vandewoestyne		http://hello.to/MC303		
Hugo Verrieststraat 48		Bart.Vandewoestyne@skynet.be
8550 ZWEVEGEM			ICQ# 21275340
BELGIUM - EUROPE		nick: MC303
Phone: +32(0)56/75.48.11
-------------------------------------------------------------
"If we knew what it was we were doing, it would not
 be called research, would it?"
				-- Albert Einstein --



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