aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-account-editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-account-editor.c')
-rw-r--r--mail/em-account-editor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index ecc2671dba..ce82449fa7 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -966,7 +966,7 @@ smime_sign_key_select(GtkWidget *button, EMAccountEditor *emae)
w = e_cert_selector_new(E_CERT_SELECTOR_SIGNER, gtk_entry_get_text(gui->smime_sign_key));
gtk_window_set_modal((GtkWindow *)w, TRUE);
- gtk_window_set_transient_for((GtkWindow *)w, (GtkWindow *)gtk_widget_get_toplevel((GtkWidget *)emae));
+ gtk_window_set_transient_for((GtkWindow *)w, (GtkWindow *)gtk_widget_get_toplevel(button));
g_signal_connect(w, "selected", G_CALLBACK(smime_sign_key_selected), emae);
gtk_widget_show(w);
}
@@ -1001,7 +1001,7 @@ smime_encrypt_key_select(GtkWidget *button, EMAccountEditor *emae)
w = e_cert_selector_new(E_CERT_SELECTOR_SIGNER, gtk_entry_get_text(gui->smime_encrypt_key));
gtk_window_set_modal((GtkWindow *)w, TRUE);
- gtk_window_set_transient_for((GtkWindow *)w, (GtkWindow *)gtk_widget_get_toplevel((GtkWidget *)emae));
+ gtk_window_set_transient_for((GtkWindow *)w, (GtkWindow *)gtk_widget_get_toplevel(button));
g_signal_connect(w, "selected", G_CALLBACK(smime_encrypt_key_selected), emae);
gtk_widget_show(w);
}