changeset 23044:cae9ac6cb1a0

The checkbox needs to be toggled back on only when it's alive. And the accels are auto-saved when changed. applied changes from 366dc2810da183961859a6bd54fd7cac1d0a6863 through 69693756ac2eea13c0b8f858fa1d3ae4a31900e9
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 19 Jun 2008 18:13:32 +0000
parents 8900c3ec1c86
children 76ae43c5e745
files pidgin/gtkprefs.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkprefs.c	Thu Jun 19 18:12:54 2008 +0000
+++ b/pidgin/gtkprefs.c	Thu Jun 19 18:13:32 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);
 }