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



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
murray usa net
www.murrayc.com




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