aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-01-05 05:42:58 +0800
committerChristian Persch <chpe@src.gnome.org>2005-01-05 05:42:58 +0800
commitadac32cbff6c28cecfb0cab0edaf1bc69b25b545 (patch)
treedd0270a6413d71d6f584976d1e5b7a7b54c3235d /src
parentc22cb479dbb9879f1b153f391b57e972f53c1b9f (diff)
downloadgsoc2013-epiphany-adac32cbff6c28cecfb0cab0edaf1bc69b25b545.tar
gsoc2013-epiphany-adac32cbff6c28cecfb0cab0edaf1bc69b25b545.tar.gz
gsoc2013-epiphany-adac32cbff6c28cecfb0cab0edaf1bc69b25b545.tar.bz2
gsoc2013-epiphany-adac32cbff6c28cecfb0cab0edaf1bc69b25b545.tar.lz
gsoc2013-epiphany-adac32cbff6c28cecfb0cab0edaf1bc69b25b545.tar.xz
gsoc2013-epiphany-adac32cbff6c28cecfb0cab0edaf1bc69b25b545.tar.zst
gsoc2013-epiphany-adac32cbff6c28cecfb0cab0edaf1bc69b25b545.zip
Don't focus the buttons on click.
2005-01-04 Christian Persch <chpe@cvs.gnome.org> * src/bookmarks/ephy-bookmark-action.c: (create_tool_item): * src/bookmarks/ephy-topic-action.c: (create_tool_item): Don't focus the buttons on click. * src/bookmarks/ephy-topic-action.c: (add_open_in_tabs_menu): Use "Open in New Tabs" label for consistency.
Diffstat (limited to 'src')
-rw-r--r--src/bookmarks/ephy-bookmark-action.c1
-rw-r--r--src/bookmarks/ephy-topic-action.c8
2 files changed, 8 insertions, 1 deletions
diff --git a/src/bookmarks/ephy-bookmark-action.c b/src/bookmarks/ephy-bookmark-action.c
index 90883cf36..e032b91f6 100644
--- a/src/bookmarks/ephy-bookmark-action.c
+++ b/src/bookmarks/ephy-bookmark-action.c
@@ -133,6 +133,7 @@ create_tool_item (GtkAction *action)
button = gtk_button_new ();
gtk_widget_add_events (GTK_WIDGET (button), GDK_BUTTON1_MOTION_MASK);
gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
+ gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE);
gtk_widget_show (button);
gtk_container_add (GTK_CONTAINER (hbox), button);
g_object_set_data (G_OBJECT (item), "button", button);
diff --git a/src/bookmarks/ephy-topic-action.c b/src/bookmarks/ephy-topic-action.c
index c5c9fab8d..e98e0a5c9 100644
--- a/src/bookmarks/ephy-topic-action.c
+++ b/src/bookmarks/ephy-topic-action.c
@@ -126,6 +126,7 @@ create_tool_item (GtkAction *action)
button = gtk_toggle_button_new ();
gtk_widget_add_events (GTK_WIDGET (button), GDK_BUTTON1_MOTION_MASK);
gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
+ gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE);
gtk_widget_show (button);
gtk_container_add (GTK_CONTAINER (hbox), button);
g_object_set_data (G_OBJECT (item), "button", button);
@@ -442,8 +443,13 @@ add_open_in_tabs_menu (EphyTopicAction *action,
EphyNode *node)
{
GtkWidget *item;
+ const char *label;
- item = gtk_menu_item_new_with_mnemonic (_("_Open in Tabs"));
+ label = ngettext ("_Open in New Tab",
+ "_Open in New Tabs",
+ ephy_node_get_n_children (node));
+
+ item = gtk_menu_item_new_with_mnemonic (label);
gtk_widget_show (item);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);