changeset 22988:f6dc06ba2bf4

The checkbox needs to be toggled back on only when it's alive. And the accels are auto-saved when changed.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 17 May 2008 16:39:53 +0000
parents 5cbd119b26af
children adde385c7904
files pidgin/gtkprefs.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkprefs.c	Fri May 16 21:04:11 2008 +0000
+++ b/pidgin/gtkprefs.c	Sat May 17 16:39:53 2008 +0000
@@ -879,9 +879,6 @@
 	 */
 	if(!changed)
 		purple_debug_warning("gtkprefs", "Escape accel failed to change\n");
-
-	/* TODO: create pidgin_accels_schedule_save */
-	pidgin_save_accels_cb(NULL, 0, 0, NULL, NULL);
 }
 
 
@@ -919,8 +916,8 @@
 	escape_closes_conversation_cb_id = g_signal_connect(checkbox,
 		"clicked", G_CALLBACK(escape_closes_conversation_cb), NULL);
 
-	g_signal_connect(map, "changed::" CONVERSATION_CLOSE_ACCEL_PATH,
-		G_CALLBACK(conversation_close_accel_changed_cb), checkbox);
+	g_signal_connect_object(map, "changed::" CONVERSATION_CLOSE_ACCEL_PATH,
+		G_CALLBACK(conversation_close_accel_changed_cb), checkbox, (GConnectFlags)0);
 
 	gtk_box_pack_start(GTK_BOX(vbox), checkbox, FALSE, FALSE, 0);
 }