]> spindle.queued.net Git - midori/commitdiff
Only update statusbar text if the view is the current tab
authorChristian Dywan <christian@twotoasts.de>
Fri, 28 Aug 2009 21:54:06 +0000 (23:54 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 28 Aug 2009 23:23:10 +0000 (01:23 +0200)
midori/midori-browser.c

index e03ea7ef7f6e7ee15e6813ad5724bc5c09f197d3..4b1d65ab480eb5de89fa6af5f0af6f1b49df38a6 100644 (file)
@@ -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 */