[empathy] Minor changes



commit 972532d4223b01ae12fcae945620615fbc9f5ccd
Author: Gabriel Millaire <millaire gabriel gmail com>
Date:   Fri Jul 10 12:55:43 2009 -0400

    Minor changes

 src/empathy-main-window.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index 06238b2..4b1af85 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -774,12 +774,9 @@ main_window_view_sort_contacts_cb (GtkRadioAction    *action,
 		g_warning ("No GEnumValue for EmpathyContactListSort with GtkRadioAction index:%d",
 			   g_slist_index (group, action));
 	} else {
-		const gchar *value_str;
-		value_str = enum_value->value_nick;
-
 		empathy_conf_set_string (empathy_conf_get (),
 					 EMPATHY_PREFS_CONTACTS_SORT_CRITERIUM,
-					 value_str);
+					 enum_value->value_nick);
 	}
 	empathy_contact_list_store_set_sort_criterium (window->list_store, value);
 }
@@ -834,6 +831,9 @@ main_window_notify_contact_list_size_cb (EmpathyConf       *conf,
 			value = CONTACT_LIST_NORMAL_SIZE;
 		}
 	}
+	/* By changing the value of the GtkRadioAction,
+	   it emits a signal that calls main_window_view_contacts_list_size_cb
+	   which updates the contacts list */
 	gtk_radio_action_set_current_value (window->normal_with_avatars, value);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]