[epiphany/wip/gtkaction-to-gaction] window: Remove confusingly-named function



commit 3ccd3ba05ba7be00fb9785a1886f7278f3d2f3b6
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Mon Jul 11 11:54:51 2016 -0500

    window: Remove confusingly-named function
    
    It doesn't use EphyWindowAction, at least not anymore. And it's a
    one-liner called in exactly one place, right below, so just get rid of
    it.

 src/ephy-window.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 5347993..c6a4384 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1107,13 +1107,6 @@ sync_tab_document_type (EphyWebView *view,
 }
 
 static void
-_ephy_window_action_set_favicon (EphyWindow *window,
-                                 GdkPixbuf  *icon)
-{
-  g_object_set (window->location_controller, "icon", icon, NULL);
-}
-
-static void
 sync_tab_icon (EphyWebView *view,
                GParamSpec  *pspec,
                EphyWindow  *window)
@@ -1124,7 +1117,7 @@ sync_tab_icon (EphyWebView *view,
 
   icon = ephy_web_view_get_icon (view);
 
-  _ephy_window_action_set_favicon (window, icon);
+  g_object_set (window->location_controller, "icon", icon, NULL);
 }
 
 static void


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