[Gtk-sharp-list] using Gnome.About
jeroen
jeroen@xs4all.nl
Sun, 7 Dec 2003 19:59:24 +0100 (CET)
Hi,
It's normal for applications to only show 1 GnomeAbout dialog at a time.
So selecting Help->About again, show only raise an existing dialog.
In C, this is usually accomplished by adding a weak pointer to the about
GObject:
g_object_add_weak_pointer (G_OBJECT (about), (gpointer *)&about);
The above call will set the about pointer to NULL when the GnomeAbout
instance is destroyed (?).
I haven't found a similar way to do this in Gtk# so far. The problem is
that once you have created a Gnome.About object, about.Visible will still
returns true even though the dialog has already been closed. The following
about.Show () call will throw a native exception.
What's the proper way of doing this in C#/Gtk#?
Thanks,
Jeroen