From 0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 31 Mar 2009 21:48:38 +0000 Subject: Extend EAttachmentView by subclassing EAttachmentHandler. So far it only supports extending the attachment pop-up menu, but I also plan to support extending drag and drop types. Might even end up replacing EMFormatHook. Two subclasses created so far: EAttachmentHandlerImage handles images (built-in) EAttachmentHandlerMail handles emails (defined in mail module) svn path=/branches/kill-bonobo/; revision=37487 --- mail/e-mail-attachment-bar.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'mail/e-mail-attachment-bar.c') diff --git a/mail/e-mail-attachment-bar.c b/mail/e-mail-attachment-bar.c index 0043dc383f..533623e066 100644 --- a/mail/e-mail-attachment-bar.c +++ b/mail/e-mail-attachment-bar.c @@ -299,8 +299,12 @@ static void mail_attachment_bar_size_request (GtkWidget *widget, GtkRequisition *requisition) { - /* XXX This works around GtkHTMLEmbedded brokenness. - * Once we finally move to WebKit, remove this. */ + /* XXX This works around GtkHTMLEmbedded not taking visibility + * into account when calculating its size (at least I think + * that's where it's broken). Without the workaround, we + * get a sizable gap between the headers and body when this + * widget is invisible. Once we finally move to WebKit, + * remove this. */ if (!GTK_WIDGET_VISIBLE (widget)) { requisition->width = 0; requisition->height = 0; -- cgit v1.2.3