Re: [gtkmm] delete widget



On Sunday 01 August 2004 07:18, B.Hakvoort wrote:
> Hey,
>
> If you declare the dialog as a pointer you can simply delete it by using
> delete :
>
> Gtk::Dialog *dialog = new Gtk::Dialog() ;
> //do something with dialog
> delete dialog;

The dialog is something like this: 

About::About* m_about;
Glib::RefPtr<Gnome::Glade::Xml> m_refGlade;
m_refGlade->get_widget_derived("About",m_about);

where the class About inherits Gtk::Dialog, this is made using libglademm.

>
> maybe this is what you're looking for?
>
> Bart
>
> On Sun, 2004-08-01 at 00:31, Wellington Seixas Castello wrote:
> > Hello everyone,
> > Is there some way to delete a widget manually? instead of just use hide()
> > (as i'm doing in my program) and without manage()/add() functions?
> > The problem is that the Dialog class i'm using in the program  never have
> > a finish. I was declared it in the class of main window so that just use
> > hide() and present() but i don't know how to delete it if i don't use
> > anymore. I'm using libglademm to get Dialog and creating a new derived
> > class with that.
> >
> > Thank you.
> > _______________________________________________
> > gtkmm-list mailing list
> > gtkmm-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gtkmm-list



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