Re: libgnomeui - About Dialog



On Thu, 8 Mar 2001, Joachim Backes wrote:
> it seems that if a GnomeAboutDialog is popped up, and the OK button
> is pressed, the GnomeAboutDialog widget is deleted, because: If I try to
> popup the GnomeAboutDialog again by
>
>         gtk_widget_show(my_about_dialog)
>
> then I get a Gtk+ error msg:
>
>         Gtk-CRITICAL **: file gtkwidget.c: line 1425 (gtk_widget_show): assertion `GTK_IS_WIDGET (wi
>         dget)' failed.
>
> I'm using glade for making the app.

Well, GnomeAboutDialog is a fire&forget dialog. You don't need to free it
after creation, but also shouldn't hold a reference to it. Just create it
every time you want to show it.

Regards,

   Jens





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]