Re: [gtk-list] Re: callback on "destroy" signal



John C Atkeson wrote:
> 
> >>
> Try (in main()) :
>   gtk_signal_connect(GTK_OBJECT(window), "destroy",
> GTK_SIGNAL_FUNC(gtk_main_quit), NULL);
> <<
>   Thanks but I tried that and it only works on the toplevel window and
> not on children.
> I need to catch this signal just on a particular child, who may
> dissappear while the main program is still running...
> 
>   The frustrating thing is that catching the destroy signal on a child
> widget must be a very common technique, but I've never seen example code.
> 
>   Does anyone ever use gtk_widget_set_user_data?  How does one know when
> the widget is dead so to free the data?
> 
>    John
> 
>   John
> 
> 
> ___________________________________________________________________
> Get the Internet just the way you want it.
> Free software, free e-mail, and free Internet access for a month!
> Try Juno Web: http://dl.www.juno.com/dynoget/tagj.
> 
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null



The code sent by you, works only modifying this line ... it's tested (gtk 1.2.6
and Solaris) ...



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