[Xfce4-commits] <midori:master> Fix underscores in labels in app menu and compact add
Christian Dywan
noreply at xfce.org
Fri Oct 23 01:24:04 CEST 2009
Updating branch refs/heads/master
to 4b912f17deda35127392e304ea6d46b349655e48 (commit)
from 7c1caed409e934fc7d44af644a0e73ab522c9f3a (commit)
commit 4b912f17deda35127392e304ea6d46b349655e48
Author: Christian Dywan <christian at twotoasts.de>
Date: Thu Oct 22 23:27:03 2009 +0200
Fix underscores in labels in app menu and compact add
midori/midori-browser.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index f797e5d..0bdcd39 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -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);
More information about the Xfce4-commits
mailing list