aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/em-account-editor.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 92f9c2f778..a6f8fa7049 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,10 @@
+2007-06-25 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #352947
+
+ * em-account-editor.c: (smime_sign_key_select),
+ (smime_encrypt_key_select): EMAccountEditor isn't a GtkWidget.
+
2007-06-18 Srinivasa Ragavan <sragavan@novell.com>
** Fix for bug #448223 from Gilles Dartiguelongue
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);
}