From ca691310d85f7a266d070cb004d3534215ac47d0 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 15 Apr 2009 00:15:46 +0000 Subject: Add "View Inline" / "Hide" menu items to the popup menu. Add application icons to the "Open With" menu items. svn path=/branches/kill-bonobo/; revision=37524 --- mail/em-format-html-display.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (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 d413133c3d..6faa6ae803 100644 --- a/mail/em-format-html-display.c +++ b/mail/em-format-html-display.c @@ -1219,8 +1219,10 @@ efhd_attachment_button(EMFormatHTML *efh, GtkHTMLEmbedded *eb, EMFormatHTMLPObje } attachment = info->attachment; + e_attachment_set_shown (attachment, info->shown); e_attachment_set_signed (attachment, info->sign); e_attachment_set_encrypted (attachment, info->encrypt); + e_attachment_set_can_show (attachment, info->handle != NULL); parent = gtk_widget_get_toplevel (GTK_WIDGET (efh->html)); parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; @@ -1238,10 +1240,6 @@ efhd_attachment_button(EMFormatHTML *efh, GtkHTMLEmbedded *eb, EMFormatHTMLPObje widget = e_attachment_button_new (view); e_attachment_button_set_attachment ( E_ATTACHMENT_BUTTON (widget), attachment); - e_attachment_button_set_expandable ( - E_ATTACHMENT_BUTTON (widget), (info->handle != NULL)); - e_attachment_button_set_expanded ( - E_ATTACHMENT_BUTTON (widget), info->shown); gtk_container_add (GTK_CONTAINER (eb), widget); gtk_widget_show (widget); -- cgit