[epiphany] No need to explicitly hide new tab and page menu button from ephy_window_constructed()



commit 16ca0d85be2abbea97234d82551f3d714d2d6fa7
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Wed Dec 7 17:28:06 2016 +0100

    No need to explicitly hide new tab and page menu button from ephy_window_constructed()
    
    We have window chromes for that already working.

 src/ephy-header-bar.c |    6 ------
 src/ephy-header-bar.h |    1 -
 src/ephy-window.c     |    6 ------
 3 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/src/ephy-header-bar.c b/src/ephy-header-bar.c
index c2c51e8..f68c1b7 100644
--- a/src/ephy-header-bar.c
+++ b/src/ephy-header-bar.c
@@ -837,12 +837,6 @@ ephy_header_bar_get_page_menu_button (EphyHeaderBar *header_bar)
   return header_bar->page_menu_button;
 }
 
-GtkWidget *
-ephy_header_bar_get_new_tab_button (EphyHeaderBar *header_bar)
-{
-  return header_bar->new_tab_button;
-}
-
 EphyWindow *
 ephy_header_bar_get_window (EphyHeaderBar *header_bar)
 {
diff --git a/src/ephy-header-bar.h b/src/ephy-header-bar.h
index 90eb625..1e6e87d 100644
--- a/src/ephy-header-bar.h
+++ b/src/ephy-header-bar.h
@@ -39,7 +39,6 @@ void             ephy_header_bar_change_combined_stop_reload_state (GSimpleActio
 
 EphyTitleWidget *ephy_header_bar_get_title_widget                  (EphyHeaderBar *header_bar);
 GtkWidget       *ephy_header_bar_get_page_menu_button              (EphyHeaderBar *header_bar);
-GtkWidget       *ephy_header_bar_get_new_tab_button                (EphyHeaderBar *header_bar);
 EphyWindow      *ephy_header_bar_get_window                        (EphyHeaderBar *header_bar);
 
 G_END_DECLS
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 166ffe4..b0f84dc 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -3059,12 +3059,6 @@ ephy_window_constructed (GObject *object)
   if (mode == EPHY_EMBED_SHELL_MODE_APPLICATION) {
     g_object_set (window->location_controller, "editable", FALSE, NULL);
 
-    /* We don't need to show the page menu and the new tab button in web
-     * application mode.
-     */
-    gtk_widget_set_visible (ephy_header_bar_get_page_menu_button (EPHY_HEADER_BAR (window->header_bar)), 
FALSE);
-    gtk_widget_set_visible (ephy_header_bar_get_new_tab_button (EPHY_HEADER_BAR (window->header_bar)), 
FALSE);
-
     action_group = gtk_widget_get_action_group (GTK_WIDGET (window), "popup");
     new_action = g_action_map_lookup_action (G_ACTION_MAP (action_group), "context-bookmark-page");
     ephy_action_change_sensitivity_flags (G_SIMPLE_ACTION (new_action), SENS_FLAG_CHROME, TRUE);


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