Re: [gtk-list] closing dialog in Gtk--
- From: Tero Pulkkinen <terop students cc tut fi>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] closing dialog in Gtk--
- Date: 05 Mar 1998 11:10:00 +0200
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]