From b7d6b7be91f2348427d1900b011b069abd0fa40a Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 14 Jan 2004 02:57:06 +0000 Subject: Pass the parent window, fixing a crasher. Bug #52161. 2004-01-13 Ross Burton * em-folder-browser.c (emfb_empty_trash): Pass the parent window, fixing a crasher. Bug #52161. svn path=/trunk/; revision=24209 --- mail/em-folder-browser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mail/em-folder-browser.c') diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c index 27cca529ad..eb31568114 100644 --- a/mail/em-folder-browser.c +++ b/mail/em-folder-browser.c @@ -305,7 +305,7 @@ void em_folder_browser_show_preview(EMFolderBrowser *emfb, gboolean state) /*do_message_selected (emfb);*/ /*set_cursor_pos (emfb, y);*/ } else { - em_format_format((EMFormat *)emfb->view.preview, NULL); + em_format_format((EMFormat *)emfb->view.preview, NULL, NULL, NULL); gtk_widget_hide(emfb->priv->preview); /* mail_display_set_message (emfb->mail_display, NULL, NULL, NULL); @@ -590,7 +590,7 @@ emfb_empty_trash(BonoboUIComponent *uid, void *data, const char *path) { EMFolderView *emfv = data; - em_utils_empty_trash ((GtkWidget *) emfv); + em_utils_empty_trash (gtk_widget_get_toplevel ((GtkWidget *) emfv)); } static void -- cgit