changeset 61:72e6a6eb1852

[gaim-migrate @ 71] Color Dialog Segfault fixed. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Mon, 27 Mar 2000 01:03:22 +0000
parents 9b6127c08bcf
children 03b65653798b
files src/dialogs.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/dialogs.c	Mon Mar 27 00:46:06 2000 +0000
+++ b/src/dialogs.c	Mon Mar 27 01:03:22 2000 +0000
@@ -1747,8 +1747,12 @@
 
 void cancel_color(GtkWidget *widget, GtkWidget *color)
 {
-	if (color)
-		gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(color), FALSE);		
+ 	if (color)
+        {
+        	set_state_lock(1);
+        	gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(color), FALSE);
+        	set_state_lock(0);
+	}
 	destroy_dialog(NULL, colordialog);
 }