[epiphany/wip/exalm/elementary: 3/3] action-bar-start: Hide new tab button on Pantheon



commit 993b3a0cdca8d46028c238b9570257e0c09ebc7b
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Sun Sep 22 21:18:27 2019 +0500

    action-bar-start: Hide new tab button on Pantheon
    
    The previous commit added a new tab button on tab bar, so this one can be
    hidden now.
    
    Fixes https://gitlab.gnome.org/GNOME/epiphany/issues/69

 src/ephy-action-bar-start.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/ephy-action-bar-start.c b/src/ephy-action-bar-start.c
index 262b8f495..ceeaefe46 100644
--- a/src/ephy-action-bar-start.c
+++ b/src/ephy-action-bar-start.c
@@ -521,7 +521,8 @@ ephy_action_bar_start_constructed (GObject *object)
                     G_CALLBACK (homepage_button_release_event_cb), action_bar_start);
 
   /* New Tab Button */
-  if (ephy_embed_shell_get_mode (embed_shell) == EPHY_EMBED_SHELL_MODE_APPLICATION)
+  if (ephy_embed_shell_get_mode (embed_shell) == EPHY_EMBED_SHELL_MODE_APPLICATION ||
+      is_desktop_pantheon ())
     gtk_widget_set_visible (action_bar_start->new_tab_button, FALSE);
 
   g_signal_connect (action_bar_start->new_tab_button, "button-release-event",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]