[devhelp] Window: simplify _dh_window_display_uri()



commit 7a3b046d0db5384ce96ea5487142c3cf1a111030
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon May 14 18:12:08 2018 +0200

    Window: simplify _dh_window_display_uri()
    
    dh_sidebar_select_uri() is already called in web_view_load_changed_cb().

 src/dh-window.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/dh-window.c b/src/dh-window.c
index e3df739..0b74a5f 100644
--- a/src/dh-window.c
+++ b/src/dh-window.c
@@ -1173,18 +1173,14 @@ void
 _dh_window_display_uri (DhWindow    *window,
                         const gchar *uri)
 {
-        DhWindowPrivate *priv;
         DhWebView *web_view;
 
         g_return_if_fail (DH_IS_WINDOW (window));
         g_return_if_fail (uri != NULL);
 
-        priv = dh_window_get_instance_private (window);
-
         web_view = get_active_web_view (window);
         if (web_view == NULL)
                 return;
 
         webkit_web_view_load_uri (WEBKIT_WEB_VIEW (web_view), uri);
-        dh_sidebar_select_uri (priv->sidebar, uri);
 }


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