aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-account-prefs.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-01-28 17:07:01 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-01-28 17:07:01 +0800
commitd141f6087927530793aa86f504fc95e3a45a656e (patch)
tree81bac036b0b593e4476de82c9cc3b36068e499a2 /mail/em-account-prefs.c
parent29620d17ab079c70a475af56f4e7e7cbe09b59cc (diff)
downloadgsoc2013-evolution-d141f6087927530793aa86f504fc95e3a45a656e.tar.gz
gsoc2013-evolution-d141f6087927530793aa86f504fc95e3a45a656e.tar.zst
gsoc2013-evolution-d141f6087927530793aa86f504fc95e3a45a656e.zip
** See bug #71520.
2005-01-28 Not Zed <NotZed@Ximian.com> ** See bug #71520. * em-account-prefs.c (account_edit_clicked): repeat the nasty hack from account_edit, to refresh the list after edit. svn path=/trunk/; revision=28593
Diffstat (limited to 'mail/em-account-prefs.c')
-rw-r--r--mail/em-account-prefs.c26
1 files changed, 8 insertions, 18 deletions
diff --git a/mail/em-account-prefs.c b/mail/em-account-prefs.c
index d6276c434a..4861f3d37b 100644
--- a/mail/em-account-prefs.c
+++ b/mail/em-account-prefs.c
@@ -185,26 +185,16 @@ account_edit_clicked (GtkButton *button, gpointer user_data)
gtk_tree_model_get (model, &iter, 3, &account, -1);
if (account) {
-#if 0
- GtkWidget *parent;
-
- parent = gtk_widget_get_toplevel ((GtkWidget *) prefs);
- parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL;
-
- prefs->editor = (GtkWidget *) mail_account_editor_new (account, (GtkWindow *) parent, prefs);
-
- g_object_weak_ref ((GObject *) prefs->editor, (GWeakNotify) account_edit_finished, prefs);
- gtk_widget_show (prefs->editor);
- g_object_ref (prefs);
-#endif
- /* test foo */
- {
- EMAccountEditor *emae;
+ EMAccountEditor *emae;
- emae = em_account_editor_new(account, EMAE_NOTEBOOK);
- gtk_widget_show(emae->editor);
- }
+ emae = em_account_editor_new(account, EMAE_NOTEBOOK);
+ prefs->editor = emae->editor;
+ gtk_window_set_transient_for((GtkWindow *)prefs->editor, (GtkWindow *)gtk_widget_get_toplevel((GtkWidget *)prefs));
+ g_object_ref(prefs);
+ /* rather nasty hack to reload the accounts, it should just listen to the e-account-list */
+ g_object_weak_ref((GObject *)prefs->editor, (GWeakNotify) account_edit_finished, prefs);
+ gtk_widget_show(emae->editor);
}
} else {
gdk_window_raise (prefs->editor->window);