From: Christian Dywan Date: Fri, 28 Aug 2009 21:54:06 +0000 (+0200) Subject: Only update statusbar text if the view is the current tab X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0d6af642e87beed662060069615b14384005bc8;p=midori Only update statusbar text if the view is the current tab --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index e03ea7ef..4b1d65ab 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -589,9 +589,12 @@ midori_view_notify_statusbar_text_cb (MidoriView* view, { gchar* text; - g_object_get (view, "statusbar-text", &text, NULL); - _midori_browser_set_statusbar_text (browser, text); - g_free (text); + if ((GtkWidget*)view == midori_browser_get_current_tab (browser)) + { + g_object_get (view, "statusbar-text", &text, NULL); + _midori_browser_set_statusbar_text (browser, text); + g_free (text); + } } /* Private function, used by MidoriBookmarks and MidoriHistory */