[epiphany/wip/exalm/menu: 5/7] window: Merge toolbar.reload and tab.reload




commit 60464511bc7eb8b2eea8c907f6d84c01f3d9cf1c
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Sep 7 22:59:45 2020 +0500

    window: Merge toolbar.reload and tab.reload
    
    Another duplicate.

 src/ephy-window.c                          |  1 -
 src/resources/gtk/notebook-context-menu.ui |  2 +-
 src/window-commands.c                      | 18 ------------------
 3 files changed, 1 insertion(+), 20 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index d07a6a134..0247993d9 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -885,7 +885,6 @@ static const GActionEntry tab_entries [] = {
   { "move-left", window_cmd_tabs_move_left },
   { "move-right", window_cmd_tabs_move_right },
   { "close-others", window_cmd_tabs_close_others },
-  { "reload", window_cmd_tabs_reload },
   { "reload-all", window_cmd_tabs_reload_all_tabs },
   { "pin", window_cmd_tabs_pin },
   { "unpin", window_cmd_tabs_unpin },
diff --git a/src/resources/gtk/notebook-context-menu.ui b/src/resources/gtk/notebook-context-menu.ui
index c5a608e8f..7c61c2b7e 100644
--- a/src/resources/gtk/notebook-context-menu.ui
+++ b/src/resources/gtk/notebook-context-menu.ui
@@ -5,7 +5,7 @@
     <section>
       <item>
         <attribute name="label" translatable="yes">R_eload</attribute>
-        <attribute name="action">tab.reload</attribute>
+        <attribute name="action">toolbar.reload</attribute>
       </item>
       <item>
         <attribute name="label" translatable="yes">Reload _All Tabs</attribute>
diff --git a/src/window-commands.c b/src/window-commands.c
index 28d62c74e..35a35581c 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -2878,24 +2878,6 @@ window_cmd_tabs_close_others (GSimpleAction *action,
   g_slist_free (pages_to_close);
 }
 
-void
-window_cmd_tabs_reload (GSimpleAction *action,
-                        GVariant      *parameter,
-                        gpointer       user_data)
-{
-  EphyWindow *window = user_data;
-  EphyEmbed *embed;
-  WebKitWebView *view;
-
-  embed = ephy_embed_container_get_active_child (EPHY_EMBED_CONTAINER (window));
-  g_assert (embed != NULL);
-
-  gtk_widget_grab_focus (GTK_WIDGET (embed));
-
-  view = EPHY_GET_WEBKIT_WEB_VIEW_FROM_EMBED (embed);
-  webkit_web_view_reload (view);
-}
-
 void
 window_cmd_tabs_reload_all_tabs (GSimpleAction *action,
                                  GVariant      *parameter,


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