On Sun, Feb 19, 2012 at 07:40:23AM -0700, Michael Torrie wrote: > Date: Sun, 19 Feb 2012 07:40:23 -0700 > From: Michael Torrie <torr...@gmail.com> > Subject: Re: "HELP/About" was :: [Re: suggestions on user config?] > To: gtk-app-devel-list@gnome.org > > On 02/19/2012 06:38 AM, Tadej Borovšak wrote: > > Hi > > > >> the dialoh has a "Close" button in the lower right. In the > >> lower left are two buttons. one is labeled "Credits"; next > >> to it is a button labeled "License" that displays the GNU > >> copyright. can somebody clue me in on how to add the two > >> buttons s on the lower left? > > > > I don't have GNOME installed here, but my guess would be that you're > > looking at the stock GtkAboutDialog, which is part of the GTK+. > > The GtkAboutDialog class is based on GtkDialog, which defines a > GtkHButtonBox container, which you can add your own buttons to with a > call to gtk_dialog_add_button() or gtk_dialog_add_buttons()
note what i just emailed to tadej, that these lines displayeed Close in the lower right: hbox = gtk_hbutton_box_new (); gtk_button_box_set_layout (GTK_BUTTON_BOX (hbox), GTK_BUTTONBOX_END); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); close = gtk_button_new_with_label ("Close"); gtk_container_add (GTK_CONTAINER (hbox), close); g_signal_connect (close, "clicked", G_CALLBACK (remove_text_window), window); gtk_widget_show_all (window); i've been looking for code to learn from. i spotted this botton layout from the game 'Iagno' but could only find part of its source. lucky for me that i know c++. be nice if there were some macro like "GTK_BUTTONBOX_LEFT"! > > _______________________________________________ > 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 Voice By Computer (for Universal Access): http:/www.thought.org/vbc 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