aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-01-21 19:36:59 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-01-21 19:36:59 +0100
commitdeacd4b7d4ae537f71798cd3e794371545fbc768 (patch)
tree42060b1d30432af70cb6a140078d28029270c9b7
parentd17393649419980073145b92737cc9f845a26a9e (diff)
downloadconnman-gnome-deacd4b7d4ae537f71798cd3e794371545fbc768.tar.gz
Show preparation state when connection
-rw-r--r--applet/main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/applet/main.c b/applet/main.c
index 31499e6..148651b 100644
--- a/applet/main.c
+++ b/applet/main.c
@@ -171,6 +171,8 @@ static void passphrase_dialog(const char *path, const char *name)
passphrase = gtk_entry_get_text(GTK_ENTRY(entry));
connman_client_set_passphrase(client, path, passphrase);
+
+ status_prepare();
connman_client_connect(client, path);
}
@@ -188,6 +190,7 @@ static void activate_callback(GtkWidget *item, gpointer user_data)
return;
if (security == CONNMAN_SECURITY_NONE) {
+ status_prepare();
connman_client_connect(client, path);
return;
}
@@ -195,6 +198,8 @@ static void activate_callback(GtkWidget *item, gpointer user_data)
passphrase = connman_client_get_passphrase(client, path);
if (passphrase != NULL) {
g_free(passphrase);
+
+ status_prepare();
connman_client_connect(client, path);
return;
}
@@ -417,7 +422,9 @@ static void connection_removed(GtkTreeModel *model, GtkTreePath *path,
static void status_callback(const char *status, void *user_data)
{
- if (g_str_equal(status, "connecting") == TRUE)
+ if (g_str_equal(status, "offline") == TRUE)
+ status_offline();
+ else if (g_str_equal(status, "connecting") == TRUE)
status_config();
}