[PATCH] Close the status dock error msgbox



If you try to add more than one status dock, the panel complains. This
makes the 'Close' button on that message dialog actually close the
dialog.

Can someone please check this over & (if correct) commit to CVS?

Thanks;
mibus

-- 
Robert Mibus <mibus bigpond com>
A bug in the hand is better than one as yet undetected.
Index: menu.c
===================================================================
RCS file: /cvs/gnome/gnome-panel/gnome-panel/menu.c,v
retrieving revision 1.533
diff -u -r1.533 menu.c
--- menu.c	2002/02/21 03:01:19	1.533
+++ menu.c	2002/02/23 01:36:47
@@ -2134,6 +2134,9 @@
 		gtk_window_set_wmclass(GTK_WINDOW(mbox),
 				       "no_more_status_dialog","Panel");
 		gtk_widget_show_all (mbox);
+		g_signal_connect (G_OBJECT(mbox), "response",
+				  G_CALLBACK(gtk_widget_destroy),
+				  NULL);
 	}
 }



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