diff src/gtkblist.c @ 11923:ab0f16a72e89

[gaim-migrate @ 14214] Whitespace changes and save the sorting preference when it's changed via the menu in the blist committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 31 Oct 2005 05:32:48 +0000
parents 52f27ffe68a5
children ced9410eeb73
line wrap: on
line diff
--- 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);