From 53aa17c033a91cebe59668acba2e469d542d69f7 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 23 Aug 2004 15:27:10 +0000 Subject: Fix for bug #62812 2004-08-13 Jeffrey Stedfast Fix for bug #62812 * em-format-html-display.c (em_format_html_display_search): Set the search_dialog to be transient for the parent window and make sure to destroy the search_dialog when the parent gets destroyed. svn path=/trunk/; revision=26995 --- mail/em-format-html-display.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mail/em-format-html-display.c') diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c index e0d5977153..96e65e2d5c 100644 --- a/mail/em-format-html-display.c +++ b/mail/em-format-html-display.c @@ -242,7 +242,7 @@ efhd_init(GObject *o) html_engine_set_tokenizer(efh->html->engine, (HTMLTokenizer *)efhd->search_tok); g_signal_connect(efh->html, "realize", G_CALLBACK(efhd_gtkhtml_realise), o); - + /* we want to convert url's etc */ efh->text_html_flags |= CAMEL_MIME_FILTER_TOHTML_CONVERT_URLS | CAMEL_MIME_FILTER_TOHTML_CONVERT_ADDRESSES; #undef efh @@ -517,6 +517,8 @@ em_format_html_display_search(EMFormatHTMLDisplay *efhd) p->search_wrap = FALSE; gtk_dialog_set_default_response((GtkDialog *)p->search_dialog, GTK_RESPONSE_ACCEPT); + e_dialog_set_transient_for ((GtkWindow *) p->search_dialog, (GtkWidget *) ((EMFormatHTML *) efhd)->html); + gtk_window_set_destroy_with_parent ((GtkWindow *) p->search_dialog, TRUE); efhd_update_matches(efhd); g_signal_connect(p->search_entry, "activate", G_CALLBACK(efhd_search_entry_activate), efhd); -- cgit v1.2.3