diff options
author | Not Zed <NotZed@Ximian.com> | 2005-01-28 17:07:01 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2005-01-28 17:07:01 +0800 |
commit | d141f6087927530793aa86f504fc95e3a45a656e (patch) | |
tree | 81bac036b0b593e4476de82c9cc3b36068e499a2 /mail | |
parent | 29620d17ab079c70a475af56f4e7e7cbe09b59cc (diff) | |
download | gsoc2013-evolution-d141f6087927530793aa86f504fc95e3a45a656e.tar gsoc2013-evolution-d141f6087927530793aa86f504fc95e3a45a656e.tar.gz gsoc2013-evolution-d141f6087927530793aa86f504fc95e3a45a656e.tar.bz2 gsoc2013-evolution-d141f6087927530793aa86f504fc95e3a45a656e.tar.lz gsoc2013-evolution-d141f6087927530793aa86f504fc95e3a45a656e.tar.xz 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')
-rw-r--r-- | mail/ChangeLog | 7 | ||||
-rw-r--r-- | mail/em-account-prefs.c | 26 |
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); |