[gnome-online-accounts] imap-smtp: Hide cluebar after user input



commit 0538dc1a7ad3204ffcdbfd78ee4f448f78200fc2
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Mon Mar 28 18:55:51 2016 +0200

    imap-smtp: Hide cluebar after user input
    
    When a cluebar is shown, it's still being shown after the user
    has clicked on the 'Ignore'/'Next' button until there is successful
    validation of the password. It's better to hide it while the new
    verification is ongoing, and show a new infobar if needed.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764283

 src/goabackend/goaimapsmtpprovider.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/goaimapsmtpprovider.c b/src/goabackend/goaimapsmtpprovider.c
index c998747..86b6636 100644
--- a/src/goabackend/goaimapsmtpprovider.c
+++ b/src/goabackend/goaimapsmtpprovider.c
@@ -952,6 +952,9 @@ add_account (GoaProvider    *provider,
       goto out;
     }
 
+  gtk_widget_set_no_show_all (data.cluebar, TRUE);
+  gtk_widget_hide (data.cluebar);
+
   encryption = gtk_combo_box_get_active_id (GTK_COMBO_BOX (data.imap_encryption));
   imap_tls_type = get_tls_type_from_string_id (encryption);
 
@@ -1041,6 +1044,9 @@ add_account (GoaProvider    *provider,
       goto out;
     }
 
+  gtk_widget_set_no_show_all (data.cluebar, TRUE);
+  gtk_widget_hide (data.cluebar);
+
   encryption = gtk_combo_box_get_active_id (GTK_COMBO_BOX (data.smtp_encryption));
   smtp_tls_type = get_tls_type_from_string_id (encryption);
 
@@ -1305,6 +1311,9 @@ refresh_account (GoaProvider    *provider,
       goto out;
     }
 
+  gtk_widget_set_no_show_all (data.cluebar, TRUE);
+  gtk_widget_hide (data.cluebar);
+
   imap_password = gtk_entry_get_text (GTK_ENTRY (data.imap_password));
   g_cancellable_reset (data.cancellable);
   imap_auth = goa_imap_auth_login_new (NULL, NULL, imap_username, imap_password);
@@ -1378,6 +1387,9 @@ refresh_account (GoaProvider    *provider,
       goto out;
     }
 
+  gtk_widget_set_no_show_all (data.cluebar, TRUE);
+  gtk_widget_hide (data.cluebar);
+
   smtp_password = gtk_entry_get_text (GTK_ENTRY (data.smtp_password));
   g_cancellable_reset (data.cancellable);
   goa_utils_parse_email_address (email_address, NULL, &domain);


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