# HG changeset patch # User Mark Doliner # Date 1130736768 0 # Node ID ab0f16a72e896bc66c8d96a021c9935c88dd9d09 # Parent 19b46e4e43a032bb9b7a6cd383e918ce4d34aa0f [gaim-migrate @ 14214] Whitespace changes and save the sorting preference when it's changed via the menu in the blist committer: Tailor Script diff -r 19b46e4e43a0 -r ab0f16a72e89 src/gtkblist.c --- a/src/gtkblist.c Mon Oct 31 05:02:15 2005 +0000 +++ b/src/gtkblist.c Mon Oct 31 05:32:48 2005 +0000 @@ -5212,9 +5212,9 @@ } for (l = gaim_plugins_get_loaded(); l; l = l->next) { - + plugin = (GaimPlugin *) l->data; - + if (GAIM_IS_PROTOCOL_PLUGIN(plugin)) continue; @@ -5222,14 +5222,16 @@ continue; build_plugin_actions(pluginmenu, plugin, NULL); - } } void sortmethod_act(GtkCheckMenuItem *checkmenuitem, char *id) { if (gtk_check_menu_item_get_active(checkmenuitem)) + { gaim_gtk_blist_sort_method_set(id); + gaim_prefs_set_string("/gaim/gtk/blist/sort_type", id); + } } void @@ -5255,7 +5257,7 @@ menuitem = l->data; gtk_widget_destroy(GTK_WIDGET(menuitem)); } - + for (l = gaim_gtk_blist_sort_methods; l; l = l->next) { method = (GaimGtkBlistSortMethod *) l->data; menuitem = gtk_radio_menu_item_new_with_label(sl, _(method->name)); @@ -5265,7 +5267,7 @@ gtk_menu_shell_append(GTK_MENU_SHELL(sortmenu), menuitem); g_signal_connect(G_OBJECT(menuitem), "toggled", G_CALLBACK(sortmethod_act), method->id); - gtk_widget_show(menuitem); + gtk_widget_show(menuitem); } if (activeitem) gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(activeitem), TRUE);