[epiphany] toolbar: move the new tab button to the left
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] toolbar: move the new tab button to the left
- Date: Wed, 19 Feb 2014 10:04:58 +0000 (UTC)
commit 24468cade1b54957c8ee9bcdff7345896d9ca38d
Author: Claudio Saavedra <csaavedra igalia com>
Date: Wed Feb 19 12:03:20 2014 +0200
toolbar: move the new tab button to the left
This is consistent with gedit and more balanced.
https://bugzilla.gnome.org/show_bug.cgi?id=724664
src/ephy-toolbar.c | 27 ++++++++++++++-------------
1 files changed, 14 insertions(+), 13 deletions(-)
---
diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c
index 2b1ee59..7b2646e 100644
--- a/src/ephy-toolbar.c
+++ b/src/ephy-toolbar.c
@@ -151,6 +151,20 @@ ephy_toolbar_constructed (GObject *object)
gtk_header_bar_pack_start (GTK_HEADER_BAR (toolbar), box);
+ /* New Tab */
+ button = gtk_button_new ();
+ priv->new_tab_button = button;
+ /* FIXME: apparently we need an image inside the button for the action
+ * icon to appear. */
+ gtk_button_set_image (GTK_BUTTON (button), gtk_image_new ());
+ gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
+ action = gtk_action_group_get_action (action_group, "FileNewTab");
+ gtk_activatable_set_related_action (GTK_ACTIVATABLE (button),
+ action);
+ gtk_button_set_label (GTK_BUTTON (button), NULL);
+ gtk_header_bar_pack_start (GTK_HEADER_BAR (toolbar), button);
+
+
/* Location bar + Title */
priv->title_box = ephy_title_box_new (priv->window);
priv->entry = ephy_title_box_get_location_entry (priv->title_box);
@@ -170,19 +184,6 @@ ephy_toolbar_constructed (GObject *object)
action);
gtk_header_bar_pack_end (GTK_HEADER_BAR (toolbar), button);
- /* New Tab */
- button = gtk_button_new ();
- priv->new_tab_button = button;
- /* FIXME: apparently we need an image inside the button for the action
- * icon to appear. */
- gtk_button_set_image (GTK_BUTTON (button), gtk_image_new ());
- gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
- action = gtk_action_group_get_action (action_group, "FileNewTab");
- gtk_activatable_set_related_action (GTK_ACTIVATABLE (button),
- action);
- gtk_button_set_label (GTK_BUTTON (button), NULL);
- gtk_header_bar_pack_end (GTK_HEADER_BAR (toolbar), button);
-
/* Reload/Stop for web application. */
if (mode == EPHY_EMBED_SHELL_MODE_APPLICATION)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]