diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2010-03-04 20:19:32 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2010-03-05 00:53:54 +0800 |
commit | c15ddf6b53db97e61acd45da5fd8cc9f804d7625 (patch) | |
tree | 73b5b121b5e915caa9cd919fbd5a7f3602dd7400 /src/empathy-accounts-dialog.c | |
parent | 878756780bc822f5626101d6abd2157b99e9e3c8 (diff) | |
download | gsoc2013-empathy-c15ddf6b53db97e61acd45da5fd8cc9f804d7625.tar gsoc2013-empathy-c15ddf6b53db97e61acd45da5fd8cc9f804d7625.tar.gz gsoc2013-empathy-c15ddf6b53db97e61acd45da5fd8cc9f804d7625.tar.bz2 gsoc2013-empathy-c15ddf6b53db97e61acd45da5fd8cc9f804d7625.tar.lz gsoc2013-empathy-c15ddf6b53db97e61acd45da5fd8cc9f804d7625.tar.xz gsoc2013-empathy-c15ddf6b53db97e61acd45da5fd8cc9f804d7625.tar.zst gsoc2013-empathy-c15ddf6b53db97e61acd45da5fd8cc9f804d7625.zip |
Cancel creation in the accounts dialog if the wizard is running
If the account wizard is finished it should have created at least some
accounts. Cancel any account creation that was going on in the accounts dialog
so it nicely jumps showing the first real account :)
Diffstat (limited to 'src/empathy-accounts-dialog.c')
-rw-r--r-- | src/empathy-accounts-dialog.c | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index d8489ee92..75357be9c 100644 --- a/src/empathy-accounts-dialog.c +++ b/src/empathy-accounts-dialog.c @@ -346,10 +346,8 @@ accounts_dialog_update_status_infobar (EmpathyAccountsDialog *dialog, g_free (message_markup); } -static void -empathy_account_dialog_widget_cancelled_cb ( - EmpathyAccountWidget *widget_object, - EmpathyAccountsDialog *dialog) +void +empathy_account_dialog_cancel (EmpathyAccountsDialog *dialog) { GtkTreeView *view; GtkTreeModel *model; @@ -394,6 +392,14 @@ empathy_account_dialog_widget_cancelled_cb ( } static void +empathy_account_dialog_widget_cancelled_cb ( + EmpathyAccountWidget *widget_object, + EmpathyAccountsDialog *dialog) +{ + empathy_account_dialog_cancel (dialog); +} + +static void empathy_account_dialog_account_created_cb (EmpathyAccountWidget *widget_object, TpAccount *account, EmpathyAccountsDialog *dialog) @@ -2344,3 +2350,19 @@ empathy_accounts_dialog_show_application (GdkScreen *screen, g_free (account_option); g_free (path); } + +gboolean +empathy_account_dialog_is_creating (EmpathyAccountsDialog *dialog) +{ + EmpathyAccountsDialogPriv *priv = GET_PRIV (dialog); + gboolean result = FALSE; + + if (priv->setting_widget_object == NULL) + goto out; + + g_object_get (priv->setting_widget_object, + "creating-account", &result, NULL); + +out: + return result; +} |