[gnome-initial-setup/shell/4765: 211/362] account: Remove warnings when you type into the password field



commit 7a1c43ce2d3c3147c894c81758cbfc69350d3de9
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Sep 9 15:40:24 2014 -0600

    account: Remove warnings when you type into the password field
    
    When removing the source, we shouldn't leave the ID hanging around.

 .../pages/account/gis-account-page.c               |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gnome-initial-setup/pages/account/gis-account-page.c 
b/gnome-initial-setup/pages/account/gis-account-page.c
index f265c8f..7a7b380 100644
--- a/gnome-initial-setup/pages/account/gis-account-page.c
+++ b/gnome-initial-setup/pages/account/gis-account-page.c
@@ -329,7 +329,6 @@ reason_timeout_cb (gpointer data)
     set_entry_validation_error (GTK_ENTRY (confirm_entry), _("Passwords do not match"));
 
   priv->reason_timeout = 0;
-
   return G_SOURCE_REMOVE;
 }
 
@@ -339,7 +338,10 @@ refresh_reason_timeout (GisAccountPage *page)
   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;
+    }
 
   priv->reason_timeout = g_timeout_add (600, reason_timeout_cb, page);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]