aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/em-account-prefs.c26
2 files changed, 15 insertions, 18 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 6ea67b7a2d..1431596ef4 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2005-01-27 Not Zed <NotZed@Ximian.com>
* See bug #69815.
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);