Re: [gtk-list] A quicky (window manager related)




Leon Gierat <lg395@ecs.soton.ac.uk> writes:

> I'm running window maker 0.6.3, and I've got gtk release 970925, and I
> can't seem to get windows to die using the window manager. I'm using the
> window manager "destroy" signal to trigger off either a gtk_widget_destroy
> on the main window and/or gtk_main_quit (it all depends, I've tried many 
> but probably missed the one combination that works).

Handling of window manager signals has changed a bit under 970925.
The program now receiveds a "delete_event". The window will only be
destroyed if the callback returns TRUE. Note that just having the
main window destroyed won't terminate your application. You probably
want to connect to "delete_event" and return "TRUE", then connect
a "destroy" handler which calls gtk_exit(). (Or gtk_main_quit() if
you want to regain control afterwards.)

Regards,
                                        Owen



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