changeset 698:961b252f32bf trunk

[svn] GUI fix
author nenolod
date Sat, 25 Feb 2006 22:47:48 -0800
parents b6d775929ad4
children 63ce2be16d4f
files Plugins/General/scrobbler/configure.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/General/scrobbler/configure.c	Sat Feb 25 22:33:56 2006 -0800
+++ b/Plugins/General/scrobbler/configure.c	Sat Feb 25 22:47:48 2006 -0800
@@ -75,6 +75,11 @@
         gtk_widget_destroy(GTK_WIDGET(data));
 }
 
+static void closewin(GtkWidget *wid, gpointer data)
+{
+	gtk_widget_destroy(GTK_WIDGET(data));
+}
+
 void
 configure_dialog(void)
 {
@@ -200,7 +205,7 @@
   GTK_WIDGET_SET_FLAGS (button6, GTK_CAN_DEFAULT);
 
   gtk_signal_connect(GTK_OBJECT(button6), "clicked",
-                     GTK_SIGNAL_FUNC(gtk_widget_destroyed), GTK_OBJECT(window1));
+                     GTK_SIGNAL_FUNC(closewin), GTK_OBJECT(window1));
 
   /* Store pointers to all widgets, for use by lookup_widget(). */
   GLADE_HOOKUP_OBJECT_NO_REF (window1, window1, "window1");