Re: [gtk-list] Re: GTK--: hello.cc questions
- From: Ionut Borcoman at home <borco mailbox ro>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: GTK--: hello.cc questions
- Date: Tue, 14 Jul 1998 14:16:44 +0000
Tero Pulkkinen wrote:
>
> I dont know :) never seen these bbefore :)
Maybe it's a problem with my system, which is not quite up-to-date. :(
> overriding delete_event_impl -- not destroy_event_impl...
> return value of it determines if gtk automatically destroys
> the widget and with gtk-- it should always be 0. (I think)
If I add this function,
gint delete_event_impl(GdkEventAny *){
g_print( "delete event occured\n");
Gtk_Main::instance()->quit(); ;
return 0;
}
than, when I close the window via wm, I get these:
delete event occured
** WARNING **: file gtkobject.c: line 1140 (gtk_object_get_data_by_id):
"GTK_IS_OBJECT (object)"
** WARNING **: gtk_signal_disconnect(): could not find handler (1)
If I return 1 or return nothing, then everything's OK. Why ? I'm also
surprised that the g++ doesn't complain when you return nothing, though
the function require an gint to be returned.
OBS: if I don't whant to let the window be deleted at all, then I return
1 and not call Gtk_Main::instance()->quit().
TIA,
Ionutz
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]