Re: Simple question
- From: Owen Taylor <otaylor redhat com>
- To: vladimir <vladeck sezampro yu>
- Cc: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: Simple question
- Date: Sun, 3 Nov 2002 11:03:54 -0500 (EST)
vladimir <vladeck sezampro yu> writes:
Good day,
Developers!
I just have a simple question:
have a window with >> delete_event << attached to a callback, something
like:
void
delete_event_cb (GtkWidget *widget,
GdkEvent *event,
gpointer data)
{
...
/* destroy window */
...
}
Note that "delete_event", like all signals ending in "event", has
a gboolean return value, meaning in this case:
TRUE - I handled the delete event, don't do anything
FALSE - I didn't handle it, do the default action (destroy the
window)
So, if you use a callback returning void, the behavior will
be random.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]