aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTravis Reitter <treitter@gmail.com>2010-07-08 10:28:27 +0800
committerTravis Reitter <treitter@gmail.com>2010-07-21 07:12:36 +0800
commitbd01a33901d5b12a07630e2b3e862838baa0369c (patch)
treedabbdadc39325e9ef286d1e49274195874a56b3c
parent7473d7a97d02be9aeefa271269184485ddf460a4 (diff)
downloadgsoc2013-empathy-bd01a33901d5b12a07630e2b3e862838baa0369c.tar
gsoc2013-empathy-bd01a33901d5b12a07630e2b3e862838baa0369c.tar.gz
gsoc2013-empathy-bd01a33901d5b12a07630e2b3e862838baa0369c.tar.bz2
gsoc2013-empathy-bd01a33901d5b12a07630e2b3e862838baa0369c.tar.lz
gsoc2013-empathy-bd01a33901d5b12a07630e2b3e862838baa0369c.tar.xz
gsoc2013-empathy-bd01a33901d5b12a07630e2b3e862838baa0369c.tar.zst
gsoc2013-empathy-bd01a33901d5b12a07630e2b3e862838baa0369c.zip
Clarify that toggling a group in the EmpathyContactWidget actually toggles it.
-rw-r--r--libempathy-gtk/empathy-contact-widget.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 99dd077fe..440c90482 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);
}