Re: [glade--]Dialog and destroy_event()

[email protected] (Murray Cumming)
Newsgroups gmane.comp.gnome.glademm
Message-ID <[email protected]>
On Mon, 2002-12-09 at 18:20, Mark Jones wrote:
> On Mon, 2002-12-09 at 03:09, Murray Cumming wrote:
> > On Mon, 2002-12-09 at 03:41, Mark Jones wrote:
> > > I didn't realize destroy_events for dialogs are no longer part of
> > > gtkmm.  So I added a watch for it in glade, and when it tried to compile
> > > it gave an error:
> > > myFile.cc:153: no matching function for call to 
> > > `Gtk::Dialog::signal_destroy_event ()'
> > > 
> > > So I looked at the gtkmm 2 docs and sure enough that is not supported. 
> > > So I think glade-- may have to watch the names of the signals:
> > > 
> > > <signal name="destroy_event" handler="on_myDialog_destroy_event"
> > > last_modification_time=""/>
> > 
> > Why would you want to do this? If you want to do stuff on widget
> > destruction then just do it in a derived widget's destructor.
> 
> Well, I guess I could do it there.  So what did that signal exist for in
> 1.x?

To confuse people.

>   And, what does delete_event exist for currently?  As, in what is a
> typical use for them?

In GTK+ it exists because it's hard to subclass or scope in C.

-- 
Murray Cumming
[email protected]
www.murrayc.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.