[gnome-control-center] color: Do not select the device in the treeview if it changes
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] color: Do not select the device in the treeview if it changes
- Date: Sat, 10 Mar 2012 12:33:39 +0000 (UTC)
commit 5e78f3185c6bc701970ea7d5a951ec969ce27601
Author: Richard Hughes <richard hughsie com>
Date: Sat Mar 10 09:03:26 2012 +0000
color: Do not select the device in the treeview if it changes
This prevents the treeview 'flickering' when going from selected
device1->profile1 to device2->profile1.
panels/color/cc-color-panel.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c
index 319385e..a07ed17 100644
--- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c
@@ -1750,8 +1750,6 @@ gcm_prefs_device_changed_cb (CdDevice *device, CcColorPanel *prefs)
gchar *id_tmp;
GtkTreeIter iter;
GtkTreeModel *model;
- GtkTreeSelection *selection;
- GtkWidget *widget;
CcColorPanelPrivate *priv = prefs->priv;
/* get first element */
@@ -1769,13 +1767,8 @@ gcm_prefs_device_changed_cb (CdDevice *device, CcColorPanel *prefs)
-1);
if (g_strcmp0 (id_tmp, id) == 0)
{
- /* populate device, and then select it */
+ /* populate device */
gcm_prefs_device_set_model_by_iter (prefs, device, &iter);
- widget = GTK_WIDGET (gtk_builder_get_object (priv->builder,
- "treeview_devices"));
- selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (widget));
- gtk_tree_selection_select_iter (selection, &iter);
-
}
g_free (id_tmp);
} while (gtk_tree_model_iter_next (model, &iter));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]