[gnome-initial-setup/shell/4765: 266/362] account: avoid a critical warning
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/shell/4765: 266/362] account: avoid a critical warning
- Date: Thu, 19 Mar 2015 01:43:26 +0000 (UTC)
commit 726c6b2b1476db1dc21455e3841897940eb4eb42
Author: Cosimo Cecchi <cosimo endlessm com>
Date: Wed Oct 8 14:43:48 2014 -0700
account: avoid a critical warning
Make sure to reset the source ID to zero when removing the source.
[endlessm/eos-shell#3939]
.../pages/account/gis-account-page.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gnome-initial-setup/pages/account/gis-account-page.c
b/gnome-initial-setup/pages/account/gis-account-page.c
index 95d0770..7f1301a 100644
--- a/gnome-initial-setup/pages/account/gis-account-page.c
+++ b/gnome-initial-setup/pages/account/gis-account-page.c
@@ -399,7 +399,10 @@ password_entry_focus_out (GtkWidget *widget,
GisAccountPagePrivate *priv = gis_account_page_get_instance_private (page);
if (priv->reason_timeout != 0)
- g_source_remove (priv->reason_timeout);
+ {
+ g_source_remove (priv->reason_timeout);
+ priv->reason_timeout = 0;
+ }
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]