Re: Simple question



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]