[ekiga] GmInfoBar: Fixed GTK Warning.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] GmInfoBar: Fixed GTK Warning.
- Date: Thu, 12 Nov 2015 18:37:13 +0000 (UTC)
commit 18b86a01844c1c5a017aab103929d39d7743f6d3
Author: Damien Sandras <dsandras seconix com>
Date: Sun Oct 11 16:43:12 2015 +0200
GmInfoBar: Fixed GTK Warning.
The timeout id has to be reset when the bar is automatically hidden.
lib/gui/gm-info-bar.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/lib/gui/gm-info-bar.c b/lib/gui/gm-info-bar.c
index 1df2f3d..1558034 100644
--- a/lib/gui/gm-info-bar.c
+++ b/lib/gui/gm-info-bar.c
@@ -87,9 +87,13 @@ static gboolean
on_info_bar_delayed_hide (gpointer self)
{
g_return_if_fail (GM_IS_INFO_BAR (self));
+ GmInfoBar *bar = GM_INFO_BAR (self);
+
/* Display (again) the new last element or hide the infobar */
- if (!gm_info_bar_display_last_message (self))
- gtk_widget_hide (GTK_WIDGET (self));
+ if (!gm_info_bar_display_last_message (bar))
+ gtk_widget_hide (GTK_WIDGET (bar));
+
+ bar->priv->timeout = 0;
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]