Only update statusbar text if the view is the current tab

This commit is contained in:
Christian Dywan 2009-08-28 23:54:06 +02:00
parent cf9538dd67
commit f0d6af642e

View file

@ -589,10 +589,13 @@ midori_view_notify_statusbar_text_cb (MidoriView* view,
{ {
gchar* text; gchar* text;
if ((GtkWidget*)view == midori_browser_get_current_tab (browser))
{
g_object_get (view, "statusbar-text", &text, NULL); g_object_get (view, "statusbar-text", &text, NULL);
_midori_browser_set_statusbar_text (browser, text); _midori_browser_set_statusbar_text (browser, text);
g_free (text); g_free (text);
} }
}
/* Private function, used by MidoriBookmarks and MidoriHistory */ /* Private function, used by MidoriBookmarks and MidoriHistory */
/* static */ void /* static */ void