From f0d6af642e87beed662060069615b14384005bc8 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 28 Aug 2009 23:54:06 +0200 Subject: [PATCH] Only update statusbar text if the view is the current tab --- midori/midori-browser.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 */ -- 2.39.5