[gnome-color-manager] trivial: Change the remove profile tooltip when it cannot be removed



commit c78a759a1e3e87f11ebe4c124705c615d1a50b16
Author: Richard Hughes <richard hughsie com>
Date:   Tue Jun 1 11:21:07 2010 +0100

    trivial: Change the remove profile tooltip when it cannot be removed

 src/gcm-prefs.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-prefs.c b/src/gcm-prefs.c
index 95c17f0..667ba07 100644
--- a/src/gcm-prefs.c
+++ b/src/gcm-prefs.c
@@ -2186,6 +2186,13 @@ gcm_prefs_profiles_treeview_clicked_cb (GtkTreeSelection *selection, gpointer us
 	egg_debug ("filename: %s", filename);
 	widget = GTK_WIDGET (gtk_builder_get_object (builder, "button_profile_delete"));
 	gtk_widget_set_sensitive (widget, ret);
+	if (ret) {
+		/* TRANSLATORS: this is the tooltip when the profile can be deleted */
+		gtk_widget_set_tooltip_text (widget, _("Delete this profile"));
+	} else {
+		/* TRANSLATORS: this is the tooltip when the profile cannot be deleted */
+		gtk_widget_set_tooltip_text (widget, _("This profile cannot be deleted"));
+	}
 
 	/* should we show the pane at all */
 	widget = GTK_WIDGET (gtk_builder_get_object (builder, "expander_profile_graphs"));



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