[bijiben] UI: Add tooltips to buttons, bug 699528
- From: Ekaterina Gerasimova <egerasimov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] UI: Add tooltips to buttons, bug 699528
- Date: Fri, 3 May 2013 13:26:34 +0000 (UTC)
commit bed58ca4a1254490c59e129062230b579683b05c
Author: Ekaterina Gerasimova <kittykat3756 gmail com>
Date: Thu May 2 22:21:49 2013 +0100
UI: Add tooltips to buttons, bug 699528
src/bjb-editor-toolbar.c | 3 ++-
src/bjb-main-toolbar.c | 13 ++++++++++++-
src/bjb-selection-toolbar.c | 5 ++++-
3 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/src/bjb-editor-toolbar.c b/src/bjb-editor-toolbar.c
index fd5a0f9..94e2378 100644
--- a/src/bjb-editor-toolbar.c
+++ b/src/bjb-editor-toolbar.c
@@ -221,7 +221,8 @@ bjb_editor_toolbar_init (BjbEditorToolbar *self)
gtk_image_set_pixel_size (GTK_IMAGE (image), 24);
gtk_container_add (GTK_CONTAINER (priv->toolbar_link), image);
- gtk_widget_set_tooltip_text (GTK_WIDGET (priv->toolbar_link), _("Link"));
+ gtk_widget_set_tooltip_text (GTK_WIDGET (priv->toolbar_link),
+ _("Copy selection to a new note"));
gtk_container_add (GTK_CONTAINER (priv->box), priv->toolbar_link);
gtk_widget_override_background_color (priv->toolbar_link,
GTK_STATE_FLAG_NORMAL,
diff --git a/src/bjb-main-toolbar.c b/src/bjb-main-toolbar.c
index a821a71..031a9ca 100644
--- a/src/bjb-main-toolbar.c
+++ b/src/bjb-main-toolbar.c
@@ -219,6 +219,8 @@ add_search_button (BjbMainToolbar *self)
"edit-find-symbolic",
NULL,
FALSE);
+ gtk_widget_set_tooltip_text (priv->search,
+ _("Search note titles, content and collections"));
active = bjb_window_base_get_show_search_bar (BJB_WINDOW_BASE (self->priv->window));
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->search), active);
@@ -252,7 +254,8 @@ populate_bar_for_selection (BjbMainToolbar *self)
/* Select */
priv->select = gd_main_toolbar_add_button (GD_MAIN_TOOLBAR (self),
- NULL,"Done", FALSE);
+ NULL, _("Done"), FALSE);
+ gtk_widget_set_tooltip_text (priv->select, _("Exit selection mode"));
context = gtk_widget_get_style_context (priv->select);
gtk_style_context_add_class (context, "suggested-action");
gtk_widget_reset_style (priv->select);
@@ -370,6 +373,7 @@ populate_bar_for_standard(BjbMainToolbar *self)
"object-select-symbolic",
NULL,
FALSE);
+ gtk_widget_set_tooltip_text (priv->select, _("Selection mode"));
g_signal_connect (priv->select,"clicked",
G_CALLBACK(on_selection_mode_clicked),self);
@@ -389,6 +393,8 @@ populate_bar_for_icon_view(BjbMainToolbar *self)
"view-list-symbolic",
NULL,
FALSE);
+ gtk_widget_set_tooltip_text (priv->list,
+ _("View notes and collections in a list"));
g_signal_connect (priv->list, "clicked",
G_CALLBACK(on_view_mode_clicked),self);
@@ -407,6 +413,8 @@ populate_bar_for_list_view(BjbMainToolbar *self)
"view-grid-symbolic",
NULL,
FALSE);
+ gtk_widget_set_tooltip_text (priv->grid,
+ _("View notes and collections in a grid"));
g_signal_connect (priv->grid, "clicked",
G_CALLBACK(on_view_mode_clicked),self);
@@ -684,6 +692,7 @@ populate_bar_for_note_view (BjbMainToolbar *self)
}
button = bjb_color_button_new ();
+ gtk_widget_set_tooltip_text (button, _("Note color"));
gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (button), &color);
gd_main_toolbar_add_widget (bar, button, FALSE);
@@ -699,6 +708,7 @@ populate_bar_for_note_view (BjbMainToolbar *self)
/* Sharing */
priv->share = gd_main_toolbar_add_button (bar, "send-to-symbolic",
NULL, FALSE);
+ gtk_widget_set_tooltip_text (priv->share, _("Share note"));
g_signal_connect (priv->share, "clicked",
G_CALLBACK (on_email_note_callback), priv->note);
@@ -715,6 +725,7 @@ populate_bar_for_note_view (BjbMainToolbar *self)
"emblem-system-symbolic",
NULL,
FALSE);
+ gtk_widget_set_tooltip_text (button, _("More options…"));
gtk_menu_button_set_popup (GTK_MENU_BUTTON (button),
bjb_note_menu_new (self));
diff --git a/src/bjb-selection-toolbar.c b/src/bjb-selection-toolbar.c
index 785bb6b..d5099d7 100644
--- a/src/bjb-selection-toolbar.c
+++ b/src/bjb-selection-toolbar.c
@@ -152,12 +152,15 @@ bjb_selection_toolbar_init (BjbSelectionToolbar *self)
image = gtk_image_new_from_icon_name ("emblem-documents-symbolic", GTK_ICON_SIZE_INVALID);
gtk_image_set_pixel_size (GTK_IMAGE (image), 32);
gtk_container_add (GTK_CONTAINER (priv->toolbar_tag), image);
- gtk_widget_set_tooltip_text (GTK_WIDGET (priv->toolbar_tag), _("Tag"));
+ gtk_widget_set_tooltip_text (GTK_WIDGET (priv->toolbar_tag),
+ _("Edit collections"));
gtk_container_add (GTK_CONTAINER (priv->left_box), priv->toolbar_tag);
/* Notes color */
priv->toolbar_color = bjb_color_button_new ();
gtk_container_add (GTK_CONTAINER (priv->left_box), priv->toolbar_color);
+ gtk_widget_set_tooltip_text (GTK_WIDGET (priv->toolbar_color),
+ _("Note color"));
priv->separator = gtk_separator_tool_item_new ();
gtk_separator_tool_item_set_draw (GTK_SEPARATOR_TOOL_ITEM (priv->separator), FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]