aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-attachment-bar.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2009-04-01 05:48:38 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2009-04-01 05:48:38 +0800
commit0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7 (patch)
tree90df407868f6e2636e064af23f3a8560b143ddf5 /mail/e-mail-attachment-bar.c
parent04cc4a2cb1bf87417f82d1094ddde611019c0ab8 (diff)
downloadgsoc2013-evolution-0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7.tar
gsoc2013-evolution-0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7.tar.gz
gsoc2013-evolution-0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7.tar.bz2
gsoc2013-evolution-0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7.tar.lz
gsoc2013-evolution-0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7.tar.xz
gsoc2013-evolution-0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7.tar.zst
gsoc2013-evolution-0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7.zip
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
Diffstat (limited to 'mail/e-mail-attachment-bar.c')
-rw-r--r--mail/e-mail-attachment-bar.c8
1 files changed, 6 insertions, 2 deletions
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;