[hotssh] tab: Show status page before starting negotiation



commit 3a16871c40183cb061d2602eeaa49efa19981108
Author: Colin Walters <walters verbum org>
Date:   Tue Dec 31 13:30:53 2013 -0500

    tab: Show status page before starting negotiation
    
    This ensures we show the status page; before we could reenter.

 src/hotssh-tab.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/hotssh-tab.c b/src/hotssh-tab.c
index 571477d..e06d46b 100644
--- a/src/hotssh-tab.c
+++ b/src/hotssh-tab.c
@@ -728,14 +728,14 @@ on_approve_hostkey_clicked (GtkButton     *button,
   HotSshTab *self = user_data;
   HotSshTabPrivate *priv = hotssh_tab_get_instance_private (self);
 
+  page_transition (self, HOTSSH_TAB_PAGE_CONNECTING);
+  set_status (self, _("Negotiating authentication…"));
+
   hotssh_hostdb_set_entry_known (hotssh_hostdb_get_instance (),
                                  priv->connection_id, TRUE);
 
   gssh_connection_negotiate_async (priv->connection, priv->cancellable,
                                    on_negotiate_complete, self);
-
-  page_transition (self, HOTSSH_TAB_PAGE_CONNECTING);
-  set_status (self, _("Negotiating authentication…"));
 }
 
 static void


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