diff src/dialogs.c @ 570:93c65fbaa622

[gaim-migrate @ 580] switched the smiley button to a toggle button so that all the other toggle buttons on the playground would stop making fun of her... also added save and cancel buttons to the pref dialog, with pretty pixmaps to boot! committer: Tailor Script <tailor@pidgin.im>
author Todd Kulesza <fflewddur>
date Tue, 01 Aug 2000 22:32:21 +0000
parents 102afb84ce45
children aa9a8bcddd80
line wrap: on
line diff
--- a/src/dialogs.c	Tue Aug 01 20:50:59 2000 +0000
+++ b/src/dialogs.c	Tue Aug 01 22:32:21 2000 +0000
@@ -2889,8 +2889,6 @@
 				fontface[k++] = fontname[i];
 		}
 		fontface[k] = '\0';
-	
-		save_prefs();
 	}
 	
 	cancel_font(NULL, c);
@@ -2918,7 +2916,6 @@
 			fontface[k++] = fontname[i];
 	}
 	fontface[k] = '\0';
-	save_prefs();
 }
 
 void show_font_dialog(struct conversation *c, GtkWidget *font)
@@ -3383,6 +3380,12 @@
 
 void close_smiley_dialog(GtkWidget *widget, struct conversation *c)
 {	
+	if (c->smiley)
+	{
+		set_state_lock(1);
+		gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(c->smiley), FALSE);
+		set_state_lock(0);
+	}
 	dialogwindows = g_list_remove(dialogwindows, c->smiley_dialog);
 	gtk_widget_destroy(c->smiley_dialog);
 	c->smiley_dialog = NULL;