[libgda] Add tooltip to data entry's action button



commit 8a98d88a020426a78698c9efc2aafd64cfeb1ab5
Author: Vivien Malerba <malerba gnome-db org>
Date:   Fri Sep 4 21:52:41 2009 +0200

    Add tooltip to data entry's action button
    
    to indicate the status corresponding to the
    button's color

 libgda-ui/data-entries/gdaui-entry-shell.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libgda-ui/data-entries/gdaui-entry-shell.c b/libgda-ui/data-entries/gdaui-entry-shell.c
index 12a115b..569235f 100644
--- a/libgda-ui/data-entries/gdaui-entry-shell.c
+++ b/libgda-ui/data-entries/gdaui-entry-shell.c
@@ -406,16 +406,19 @@ gdaui_entry_shell_refresh_status_display (GdauiEntryShell *shell)
 	if (shell->priv->value_is_null) {
 		normal = colors[0];
 		prelight = colors[1];
+		gtk_widget_set_tooltip_text (shell->priv->button, _("Value is NULL"));
 	}
 
 	if (shell->priv->value_is_default) {
 		normal = colors[2];
 		prelight = colors[3];
+		gtk_widget_set_tooltip_text (shell->priv->button, _("Value will be determined by default"));
 	}
 
 	if (shell->priv->value_is_non_valid) {
 		normal = colors[4];
 		prelight = colors[5];
+		gtk_widget_set_tooltip_text (shell->priv->button, _("Value is invalid"));
 	}
 
 	if (!normal)



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