]> git.0d.be Git - empathy.git/commitdiff
Don't let the GtkCellRendererToggle get activated by clicking on a tree row
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Thu, 26 Aug 2010 10:28:11 +0000 (11:28 +0100)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Thu, 26 Aug 2010 10:28:11 +0000 (11:28 +0100)
GtkTreeView activates a row when it's clicked or double-clicked, which ends
up toggling the GtkCellRendererToggle in the linking dialogue even if it's
insensitive, allowing the start Individual to be removed from the link, and
causing chaos. See bgo#567481. Closes: bgo#628011

libempathy-gtk/empathy-individual-linker.c

index e94ea66b8db3ed03360e6fd48a1bbeca3c46856c..3713a8bda5f09a584095cb92e4b93f10739ff253 100644 (file)
@@ -110,6 +110,7 @@ contact_toggle_cell_data_func (GtkTreeViewColumn *tree_column,
   g_object_set (cell,
       "visible", !is_group,
       "sensitive", individual != priv->start_individual,
+      "activatable", individual != priv->start_individual,
       "active", individual_added || individual == priv->start_individual,
       NULL);