[empathy] Clarify that toggling a group in the EmpathyContactWidget actually toggles it.
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Clarify that toggling a group in the EmpathyContactWidget actually toggles it.
- Date: Tue, 20 Jul 2010 23:23:32 +0000 (UTC)
commit bd01a33901d5b12a07630e2b3e862838baa0369c
Author: Travis Reitter <treitter gmail com>
Date: Wed Jul 7 19:28:27 2010 -0700
Clarify that toggling a group in the EmpathyContactWidget actually toggles it.
libempathy-gtk/empathy-contact-widget.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 99dd077..440c904 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -559,7 +559,7 @@ contact_widget_cell_toggled (GtkCellRendererToggle *cell,
GtkListStore *store;
GtkTreePath *path;
GtkTreeIter iter;
- gboolean enabled;
+ gboolean was_enabled;
gchar *group;
view = GTK_TREE_VIEW (information->treeview_groups);
@@ -570,11 +570,11 @@ contact_widget_cell_toggled (GtkCellRendererToggle *cell,
gtk_tree_model_get_iter (model, &iter, path);
gtk_tree_model_get (model, &iter,
- COL_ENABLED, &enabled,
+ COL_ENABLED, &was_enabled,
COL_NAME, &group,
-1);
- gtk_list_store_set (store, &iter, COL_ENABLED, !enabled, -1);
+ gtk_list_store_set (store, &iter, COL_ENABLED, !was_enabled, -1);
gtk_tree_path_free (path);
if (group != NULL)
@@ -584,7 +584,8 @@ contact_widget_cell_toggled (GtkCellRendererToggle *cell,
if (individual != NULL)
{
- folks_groups_change_group (FOLKS_GROUPS (individual), group, !enabled);
+ folks_groups_change_group (FOLKS_GROUPS (individual), group,
+ !was_enabled);
g_object_unref (individual);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]