Mercurial > hg > xmms-sid
diff src/xs_about.c @ 612:32fc27395220
About window wasn't handling delete_event properly, fixed; Cleaned up event handling a bit.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 02 Sep 2007 00:03:05 +0000 |
parents | 511f9e4771e5 |
children | 248aa59cb6a3 |
line wrap: on
line diff
--- a/src/xs_about.c Sat Sep 01 14:43:05 2007 +0000 +++ b/src/xs_about.c Sun Sep 02 00:03:05 2007 +0000 @@ -51,12 +51,8 @@ #endif -gint xs_about_ok(void) -{ - gtk_widget_destroy(xs_aboutwin); - xs_aboutwin = NULL; - return 0; -} +XS_DEF_WINDOW_CLOSE(about_ok, aboutwin) +XS_DEF_WINDOW_DELETE(about, aboutwin) /* @@ -88,6 +84,9 @@ gtk_window_set_title(GTK_WINDOW(xs_aboutwin), tmpStr); gtk_window_set_default_size(GTK_WINDOW(xs_aboutwin), 350, -1); + gtk_signal_connect(GTK_OBJECT(xs_aboutwin), "delete_event", + GTK_SIGNAL_FUNC(xs_about_delete), NULL); + about_vbox1 = gtk_vbox_new(FALSE, 0); gtk_widget_set_name(about_vbox1, "about_vbox1"); gtk_widget_ref(about_vbox1);