RE: About dialog api



> From: Matthias Clasen [mailto:maclas gmx de] 
> > > If there isn't already an about dialog attached to parent, 
> > > this function
> > > will create a new one from the provided properties.
> > 
> > And when will this automatically-created dialog be destroyed?
> > 
> 
> Together with the window it is attached to ? Or do you think 
> we need an
> explicit
> gtk_about_dialog_destroy (GtkWindow *parent) ?

gtk_widget_destroy() should do it, as in this GtkDialog example:
http://developer.gnome.org/doc/API/gtk/gtkdialog.html

It's not too bad if the automatically-created dialog is also destroyed
automatically, but I wouldn't like it if the GtkWindow decided to
automatically destroy the GtkAboutDialog that I have created manually.

By the way, how do we attach a pre-existing GtkAboutDialog to a parent
GtkWindow?

Murray Cumming
murrayc usa net
www.murrayc.com 



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