[gnome-color-manager: 13/18] trivial: hide the vcgt warning if the last profile has been deleted



commit 65cceefa43d417cb1ca38c48167b44ed6c12a460
Author: Richard Hughes <richard hughsie com>
Date:   Fri Oct 8 17:57:04 2010 +0100

    trivial: hide the vcgt warning if the last profile has been deleted

 src/cc-color-panel.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/cc-color-panel.c b/src/cc-color-panel.c
index fdcc3c5..2525e81 100644
--- a/src/cc-color-panel.c
+++ b/src/cc-color-panel.c
@@ -1666,6 +1666,10 @@ cc_color_panel_devices_treeview_clicked_cb (GtkTreeSelection *selection, CcColor
 	selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (widget));
 	path = gtk_tree_path_new_from_string ("0");
 	gtk_tree_selection_select_path (selection, path);
+	/* nothing selected */
+	if (!gtk_tree_selection_path_is_selected (selection, path)) {
+		gtk_widget_hide (panel->priv->info_bar_vcgt);
+	}
 	gtk_tree_path_free (path);
 
 	/* make sure selectable */



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