]> www.fi.muni.cz Git - evince.git/commitdiff
Use gtk_tool_button_set_use_underline() for next/previous buttons so that
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sat, 14 Feb 2009 17:23:53 +0000 (17:23 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sat, 14 Feb 2009 17:23:53 +0000 (17:23 +0000)
2009-02-14  Carlos Garcia Campos  <carlosgc@gnome.org>

* shell/eggfindbar.c: (egg_find_bar_init):

Use gtk_tool_button_set_use_underline() for next/previous buttons
so that the underline is used for the mnemonic. Fixes bug #571547.

svn path=/trunk/; revision=3431

ChangeLog
shell/eggfindbar.c

index 98e9beaa8894789ac9c23b8e22e6c727a17bd996..f05073a44416eb81bebf449d2abe7c3a3e4f4317 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-02-14  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * shell/eggfindbar.c: (egg_find_bar_init):
+
+       Use gtk_tool_button_set_use_underline() for next/previous buttons
+       so that the underline is used for the mnemonic. Fixes bug #571547.
+       
 2009-02-09  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * shell/ev-window.c: (setup_document_from_metadata),
 2009-02-09  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * shell/ev-window.c: (setup_document_from_metadata),
index 24079d3c08f5dd3dbad39b06699d3e1038011276..eabee11cac1a8a36ae7276380b8c2b5a0dcd21ff 100644 (file)
@@ -327,6 +327,7 @@ egg_find_bar_init (EggFindBar *find_bar)
   /* Prev */
   arrow = gtk_arrow_new (GTK_ARROW_LEFT, GTK_SHADOW_NONE);
   priv->previous_button = gtk_tool_button_new (arrow, Q_("Find Pre_vious"));
   /* Prev */
   arrow = gtk_arrow_new (GTK_ARROW_LEFT, GTK_SHADOW_NONE);
   priv->previous_button = gtk_tool_button_new (arrow, Q_("Find Pre_vious"));
+  gtk_tool_button_set_use_underline (GTK_TOOL_BUTTON (priv->previous_button), TRUE);
   gtk_tool_item_set_is_important (priv->previous_button, TRUE);
   gtk_widget_set_tooltip_text (GTK_WIDGET (priv->previous_button),
                               _("Find previous occurrence of the search string"));
   gtk_tool_item_set_is_important (priv->previous_button, TRUE);
   gtk_widget_set_tooltip_text (GTK_WIDGET (priv->previous_button),
                               _("Find previous occurrence of the search string"));
@@ -334,6 +335,7 @@ egg_find_bar_init (EggFindBar *find_bar)
   /* Next */
   arrow = gtk_arrow_new (GTK_ARROW_RIGHT, GTK_SHADOW_NONE);
   priv->next_button = gtk_tool_button_new (arrow, Q_("Find Ne_xt"));
   /* Next */
   arrow = gtk_arrow_new (GTK_ARROW_RIGHT, GTK_SHADOW_NONE);
   priv->next_button = gtk_tool_button_new (arrow, Q_("Find Ne_xt"));
+  gtk_tool_button_set_use_underline (GTK_TOOL_BUTTON (priv->next_button), TRUE);
   gtk_tool_item_set_is_important (priv->next_button, TRUE);
   gtk_widget_set_tooltip_text (GTK_WIDGET (priv->next_button),
                               _("Find next occurrence of the search string"));
   gtk_tool_item_set_is_important (priv->next_button, TRUE);
   gtk_widget_set_tooltip_text (GTK_WIDGET (priv->next_button),
                               _("Find next occurrence of the search string"));