[gnome-control-center] user-accounts: avoid removing non-existent GSources



commit 0f3575b3179a224acfbe59576ac9013d0af10061
Author: Ondrej Holy <oholy redhat com>
Date:   Sat Aug 9 15:12:34 2014 +0200

    user-accounts: avoid removing non-existent GSources
    
    Source id have to be zeroed correctly.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=734548

 panels/user-accounts/um-account-dialog.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/panels/user-accounts/um-account-dialog.c b/panels/user-accounts/um-account-dialog.c
index 7eee23c..d1147a2 100644
--- a/panels/user-accounts/um-account-dialog.c
+++ b/panels/user-accounts/um-account-dialog.c
@@ -337,6 +337,8 @@ local_validate (UmAccountDialog *self)
 static gboolean
 local_username_timeout (UmAccountDialog *self)
 {
+        self->local_username_timeout_id = 0;
+
         dialog_validate (self);
 
         return FALSE;
@@ -381,6 +383,8 @@ on_username_changed (GtkComboBoxText *combo,
 static gboolean
 local_name_timeout (UmAccountDialog *self)
 {
+        self->local_username_timeout_id = 0;
+
         dialog_validate (self);
 
         return FALSE;
@@ -468,6 +472,8 @@ on_generate (GtkEntry             *entry,
 static gboolean
 local_password_timeout (UmAccountDialog *self)
 {
+        self->local_password_timeout_id = 0;
+
         dialog_validate (self);
         update_password_match (self);
 
@@ -1242,6 +1248,8 @@ enterprise_domain_timeout (UmAccountDialog *self)
 {
         GtkTreeIter iter;
 
+        self->enterprise_domain_timeout_id = 0;
+
         if (gtk_combo_box_get_active_iter (self->enterprise_domain, &iter)) {
                 gtk_tree_model_get (gtk_combo_box_get_model (self->enterprise_domain), &iter, 1, 
&self->selected_realm, -1);
                 set_entry_validation_checkmark (GTK_ENTRY (self->enterprise_domain_entry));


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