diff options
author | Felix Kaser <f.kaser@gmx.net> | 2009-12-27 18:06:19 +0800 |
---|---|---|
committer | Felix Kaser <f.kaser@gmx.net> | 2010-01-11 20:51:47 +0800 |
commit | 6129abad0d991e8cb7d8aa8f582e8427fd96c5c5 (patch) | |
tree | c0668e5483d70385935b50ca6fb9d69c646eb68b /src/empathy-accounts-dialog.c | |
parent | 1f682ae31e796c0da98665416b2981b004a58ecf (diff) | |
download | gsoc2013-empathy-6129abad0d991e8cb7d8aa8f582e8427fd96c5c5.tar gsoc2013-empathy-6129abad0d991e8cb7d8aa8f582e8427fd96c5c5.tar.gz gsoc2013-empathy-6129abad0d991e8cb7d8aa8f582e8427fd96c5c5.tar.bz2 gsoc2013-empathy-6129abad0d991e8cb7d8aa8f582e8427fd96c5c5.tar.lz gsoc2013-empathy-6129abad0d991e8cb7d8aa8f582e8427fd96c5c5.tar.xz gsoc2013-empathy-6129abad0d991e8cb7d8aa8f582e8427fd96c5c5.tar.zst gsoc2013-empathy-6129abad0d991e8cb7d8aa8f582e8427fd96c5c5.zip |
disable treeview when creating an account
fixes bug 604154
Diffstat (limited to 'src/empathy-accounts-dialog.c')
-rw-r--r-- | src/empathy-accounts-dialog.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index 0f6a283e4..ba2710148 100644 --- a/src/empathy-accounts-dialog.c +++ b/src/empathy-accounts-dialog.c @@ -349,6 +349,10 @@ empathy_account_dialog_widget_cancelled_cb ( g_object_unref (account); } + gtk_widget_set_sensitive (priv->treeview, TRUE); + gtk_widget_set_sensitive (priv->button_add, TRUE); + gtk_widget_set_sensitive (priv->button_import, TRUE); + if (settings != NULL) g_object_unref (settings); } @@ -360,6 +364,7 @@ empathy_account_dialog_account_created_cb (EmpathyAccountWidget *widget_object, gchar *display_name; EmpathyAccountSettings *settings = accounts_dialog_model_get_selected_settings (dialog); + EmpathyAccountsDialogPriv *priv = GET_PRIV (dialog); display_name = empathy_account_widget_get_default_display_name ( widget_object); @@ -373,6 +378,10 @@ empathy_account_dialog_account_created_cb (EmpathyAccountWidget *widget_object, accounts_dialog_update_status_infobar (dialog, empathy_account_settings_get_account (settings)); + gtk_widget_set_sensitive (priv->treeview, TRUE); + gtk_widget_set_sensitive (priv->button_add, TRUE); + gtk_widget_set_sensitive (priv->button_import, TRUE); + if (settings) g_object_unref (settings); } @@ -632,6 +641,7 @@ accounts_dialog_button_add_clicked_cb (GtkWidget *button, EmpathyAccountsDialog *dialog) { TpAccount *account = NULL; + EmpathyAccountsDialogPriv *priv = GET_PRIV (dialog); if (accounts_dialog_has_pending_change (dialog, &account)) { @@ -651,6 +661,9 @@ accounts_dialog_button_add_clicked_cb (GtkWidget *button, else { accounts_dialog_setup_ui_to_add_account (dialog); + gtk_widget_set_sensitive (priv->treeview, FALSE); + gtk_widget_set_sensitive (priv->button_add, FALSE); + gtk_widget_set_sensitive (priv->button_import, FALSE); } } |