]> spindle.queued.net Git - midori/commitdiff
Fix underscores in labels in app menu and compact add
authorChristian Dywan <christian@twotoasts.de>
Thu, 22 Oct 2009 21:27:03 +0000 (23:27 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 22 Oct 2009 21:27:03 +0000 (23:27 +0200)
midori/midori-browser.c

index f797e5d222b158afafded11e1b297e4209ab61c7..0bdcd391e1d51b39127c6cae9f7b0b5978d5e77f 100644 (file)
@@ -2189,7 +2189,6 @@ static void
 _action_compact_add_activate (GtkAction*     action,
                               MidoriBrowser* browser)
 {
-    GtkStockItem item;
     GtkWidget* dialog;
     GtkBox* box;
     gchar* label = NULL;
@@ -2198,9 +2197,9 @@ _action_compact_add_activate (GtkAction*     action,
     if (!GTK_WIDGET_VISIBLE (browser))
         return;
 
-    gtk_stock_lookup (GTK_STOCK_ADD, &item);
     dialog = g_object_new (GTK_TYPE_DIALOG,
-        "transient-for", browser, "title", item.label, NULL); /* Add a new bookmark */
+        "transient-for", browser,
+        "title", _("Add a new bookmark"), NULL);
     box = GTK_BOX (GTK_DIALOG (dialog)->vbox);
 
     action = _action_by_name (browser, "BookmarkAdd");
@@ -2955,6 +2954,7 @@ _action_compact_menu_populate_popup (GtkAction*     action,
         button = hildon_gtk_button_new (HILDON_SIZE_FINGER_HEIGHT | HILDON_SIZE_AUTO_WIDTH);
         gtk_widget_show (button);
         gtk_button_set_label (GTK_BUTTON (button), label);
+        gtk_button_set_use_underline (GTK_BUTTON (button), TRUE);
         g_free (label);
         g_signal_connect_swapped (button, "clicked",
             G_CALLBACK (gtk_action_activate), _action);