小多 escribió: > Hi, > > I want to capture a GdkWindow's destory event. And I have tried > 'g_signal_connect' function, but failed. > Can someone refer me to an example? > > thanks, > > What's the matther following this example? Is the doc exampl, i used it last time...
g_signal_connect(G_OBJECT (window), "destroy", G_CALLBACK (destroy), NULL); static void destroy (GtkWidget *widget, gpointer data) { gtk_main_quit(); } May be you have to explain us any more, anyway the asiatic keys in your signature are lovely ;) _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list