On Wed, Dec 14, 2011 at 12:14:54AM +0100, Florian M?llner wrote: > Date: Wed, 14 Dec 2011 00:14:54 +0100 > From: Florian M?llner <fmuell...@gnome.org> > Subject: Re: can anybody help me figure out why the two hbox buttons don't > show? > To: gtk-app-devel-list@gnome.org > X-Mailer: Evolution 3.2.1 > > On mar, 2011-12-13 at 15:02 -0800, Gary Kline wrote: > > anybody know where i'm messing up? > > > > int > > main (void) > > { > > GtkWidget *window; > > GtkWidget *vbox, *hbox; > > [...] > > gtk_container_add (GTK_CONTAINER (window), vbox); > [...] > > gtk_container_add (GTK_CONTAINER (window), hbox); > > GtkWindow is a GtkBin, e.g. it can have exactly one child. > > > Florian >
hm. okay, so i removed the second gtk_container_box and got the same results. the following "hbox" is missing from the window: button_dec = gtk_button_new_from_stock ("Decrease counter"); gtk_box_pack_start (GTK_BOX (hbox), button_dec, FALSE, FALSE, 2); g_signal_connect (button_dec, "clicked", G_CALLBACK (dec_button_click_cb), NULL); gtk_widget_set_sensitive (button_dec, FALSE); gtk_widget_show(button_dec); in fact, neither button is displayed. gary > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 8.57a release of Jottings: http://jottings.thought.org Twenty-five years of service to the Unix community. _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list