Re: Add a button to the about dialog
- From: G Hasse <gorhas raditex se>
- To: Daniel Leidert <daniel leidert spam gmx net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Add a button to the about dialog
- Date: Fri, 14 Mar 2008 23:08:53 +0100
On Fri, Mar 14, 2008 at 06:23:50PM +0100, Daniel Leidert wrote:
Hi,
I would like to add some information to the About dialog of an
application. The About-dialog is created using gtk_show_about_dialog().
The About dialog is a very simple widget that is often used and
threrefor made as a simple ready made thing.
If you would like som other functionality it is quite easy to
create your own widget and add it to your application.
Now what I did is adding the following lines after calling
gtk_show_about_dialog():
[..]
dialog = g_object_get_data (G_OBJECT (GTK_WINDOW (main_window)), "gtk-about-dialog");
but = gtk_dialog_add_button(GTK_DIALOG(dialog), _("_Features"), 99);
g_signal_connect(GTK_OBJECT(but), "clicked", G_CALLBACK(about_configure_lcb), dialog);
[..]
But this creates a button every time the About dialog is called. Now I
understand, why I get this result. But I don't know, how to workaround
it. Can you give me some help?
It is somewhat unclear what you mean. Pleas explain and give more info.
(the button is intended to show, which configure options were used and
which features were enabled)
Regards, Daniel
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
Göran Hasse
----------------------------------------------------------------
Göran Hasse email: gorhas raditex se Tel: 08-6949270
Raditex AB http://www.raditex.se
Planiavägen 15, 1tr Mob: 070-5530148
131 34 NACKA, SWEDEN OrgNr: 556240-0589
VAT: SE556240058901
------------------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]