From 32eb583cb5386586f62384f128551339a4bf99b7 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 27 Jan 2012 21:13:45 +0100 Subject: [PATCH] Also reset icon when resetting location --- midori/midori-browser.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 32d72a5a..ccecdad5 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -3744,10 +3744,14 @@ static void _action_location_reset_uri (GtkAction* action, MidoriBrowser* browser) { - const gchar* uri; - - uri = midori_browser_get_current_uri (browser); - midori_location_action_set_text (MIDORI_LOCATION_ACTION (action), uri); + GtkWidget* view; + if ((view = midori_browser_get_current_tab (browser))) + { + midori_location_action_set_text (MIDORI_LOCATION_ACTION (action), + midori_view_get_display_uri (MIDORI_VIEW (view))); + midori_location_action_set_icon (MIDORI_LOCATION_ACTION (action), + midori_view_get_icon (MIDORI_VIEW (view))); + } } -- 2.39.5