Commit 2a5f1034 authored by Diego Escalante Urrelo's avatar Diego Escalante Urrelo Committed by Diego Escalante Urrelo

e-embed: only add one statusbar timeout at a time

Otherwise the statusbar can disappear even if it has a valid message
being displayed.

https://bugzilla.gnome.org/show_bug.cgi?id=685747
parent 1777a519
......@@ -736,7 +736,9 @@ status_message_notify_cb (EphyWebView *view, GParamSpec *pspec, EphyEmbed *embed
} else {
/* A short timeout before hiding the statusbar ensures that while moving
over a series of links, the overlay widget doesn't flicker on and off. */
priv->pop_statusbar_later_source_id = g_timeout_add (250, pop_statusbar_later_cb, embed);
if (priv->pop_statusbar_later_source_id == 0) {
priv->pop_statusbar_later_source_id = g_timeout_add (250, pop_statusbar_later_cb, embed);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment