Re: [gtk-list] closing dialog in Gtk--



Havoc Pennington <hp@pobox.com> writes:
>  Could someone post or point me to an example of closing a dialog in
> Gtk--? Seems pretty straightforward but everything I've tried seems to
> either cause a segfault or have no effect. Simple analogy from Gtk
> (callback does destroy()) doesn't seem to work. What should the
> button.clicked signal handler do? 

Hide the dialog and delete the C++ object. (and keep sure the object
was not inserted to any container with add(), pack_start(), pack_end() or
table_attach():) But then, dialogs rarely are added to containers.

-- 
-- Tero Pulkkinen -- terop@modeemi.cs.tut.fi --



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