[anjal] BUGFIX: Moblin Bugzilla #4342 - Tooltips for toolbar icons.



commit eca48883f76849ad7dfc6572c7b800bb1b35507c
Author: Srinivasa Ragavan <sragavan novell com>
Date:   Thu Jul 16 00:18:52 2009 +0530

    BUGFIX: Moblin Bugzilla #4342 - Tooltips for toolbar icons.

 src/mail-shell.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/mail-shell.c b/src/mail-shell.c
index 69a4903..f3094b6 100644
--- a/src/mail-shell.c
+++ b/src/mail-shell.c
@@ -347,6 +347,7 @@ mail_shell_construct (MailShell *shell)
 
 	/* Check mail button and the spinner */
 	priv->check_mail = (GtkWidget *)gtk_tool_button_new (NULL, NULL);
+	gtk_widget_set_tooltip_text (priv->check_mail, _("Check Mail"));
 	box = gtk_hbox_new (FALSE, 0);
 	tmp = e_spinner_new_spinning_small_shown();
 	gtk_widget_hide(tmp);
@@ -364,6 +365,7 @@ mail_shell_construct (MailShell *shell)
 
 	/* New mail tool button */
 	PACK_IN_TOOL(priv->new_mail, "mail-message-new");
+	gtk_widget_set_tooltip_text (priv->new_mail, _("New Mail"));
 	gtk_widget_show_all (priv->new_mail);
 	gtk_toolbar_insert ((GtkToolbar *)priv->top_bar, (GtkToolItem *)priv->new_mail, 1);
 
@@ -421,6 +423,7 @@ mail_shell_construct (MailShell *shell)
 
 	/* Settings button */
 	PACK_IN_TOOL(priv->settings, "preferences-system");
+	gtk_widget_set_tooltip_text(priv->settings, _("Settings"));
 	gtk_toolbar_insert ((GtkToolbar *)priv->top_bar, (GtkToolItem *)priv->settings, 6);
 	gtk_widget_show_all (priv->settings);
 	g_signal_connect (priv->settings, "clicked", G_CALLBACK (settings_btn_clicked), shell);
@@ -433,6 +436,7 @@ mail_shell_construct (MailShell *shell)
 	
 	/* Close button */
 	PACK_IN_TOOL(priv->quit, "gtk-close");
+	gtk_widget_set_tooltip_text(priv->quit, _("Quit"));
 	gtk_toolbar_insert ((GtkToolbar *)priv->top_bar, (GtkToolItem *)priv->quit, 8);
 	gtk_widget_show_all (priv->quit);
 	g_signal_connect (priv->quit, "clicked", G_CALLBACK(mail_shell_quit_cb), shell);



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