changeset 32721:9e860c2d34a8

Restore loading and saving of accels, which was lost at some point.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 26 Feb 2012 07:40:21 +0000
parents 293cd82fc0fc
children 49ee5dbf4c3e
files pidgin/gtkblist.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Sun Feb 26 06:40:46 2012 +0000
+++ b/pidgin/gtkblist.c	Sun Feb 26 07:40:21 2012 +0000
@@ -5871,6 +5871,8 @@
 
 	accel_group = gtk_ui_manager_get_accel_group(gtkblist->ui);
 	gtk_window_add_accel_group(GTK_WINDOW(gtkblist->window), accel_group);
+	pidgin_load_accels();
+	g_signal_connect(G_OBJECT(accel_group), "accel-changed", G_CALLBACK(pidgin_save_accels_cb), NULL);
 
 	error = NULL;
 	if (!gtk_ui_manager_add_ui_from_string(gtkblist->ui, blist_menu, -1, &error))