On Wed, Dec 14, 2011 at 02:03:21AM +0100, Florian M?llner wrote: > Date: Wed, 14 Dec 2011 02:03:21 +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 16:40 -0800, Gary Kline wrote: > > 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. > > > Did you add 'hbox' to any container ('vbox' in your code example)?
nope. here is what i start out with: window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_CENTER); gtk_window_set_title (GTK_WINDOW (window), "VoiceByComputer"); g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL); vbox = gtk_vbox_new (FALSE, 5); gtk_container_add (GTK_CONTAINER (window), vbox); gtk_container_set_border_width (GTK_CONTAINER (window), 15); below that i create a label and call update_label; then i handle the alignment:: align = gtk_alignment_new (0.5, 0.5, 0, 0); //gtk_container_add (GTK_CONTAINER (window), align); gtk_widget_show (align); then i get an hbox button and call show; after gtk_widget_show, i do the button decrease/button increase code. i'm stumped. hbox = gtk_hbox_new (FALSE, 2); //gtk_container_add (GTK_CONTAINER (align), hbox); gtk_widget_show (hbox); should i NOT be called the show() here? thanks, 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