aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-attachment-bar.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@gnome-db.org>2010-12-10 20:15:27 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:26 +0800
commitb5aba428f4d7daca78a6b079e1766d9fba5a8bc3 (patch)
treec8cd9400a62f2cf2b3ba84bd6e6b01774f2b3085 /mail/e-mail-attachment-bar.c
parentcd633936b1f2f2e8c678dfb4e3e38ba9713e41a4 (diff)
downloadgsoc2013-evolution-b5aba428f4d7daca78a6b079e1766d9fba5a8bc3.tar
gsoc2013-evolution-b5aba428f4d7daca78a6b079e1766d9fba5a8bc3.tar.gz
gsoc2013-evolution-b5aba428f4d7daca78a6b079e1766d9fba5a8bc3.tar.bz2
gsoc2013-evolution-b5aba428f4d7daca78a6b079e1766d9fba5a8bc3.tar.lz
gsoc2013-evolution-b5aba428f4d7daca78a6b079e1766d9fba5a8bc3.tar.xz
gsoc2013-evolution-b5aba428f4d7daca78a6b079e1766d9fba5a8bc3.tar.zst
gsoc2013-evolution-b5aba428f4d7daca78a6b079e1766d9fba5a8bc3.zip
Adapt size_request vfuncs to latest gtk+-3.0 API.
Diffstat (limited to 'mail/e-mail-attachment-bar.c')
-rw-r--r--mail/e-mail-attachment-bar.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/mail/e-mail-attachment-bar.c b/mail/e-mail-attachment-bar.c
index 519eaf89b7..954a3e056f 100644
--- a/mail/e-mail-attachment-bar.c
+++ b/mail/e-mail-attachment-bar.c
@@ -322,26 +322,6 @@ mail_attachment_bar_constructed (GObject *object)
G_OBJECT_CLASS (parent_class)->constructed (object);
}
-static void
-mail_attachment_bar_size_request (GtkWidget *widget,
- GtkRequisition *requisition)
-{
- /* 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_get_visible (widget)) {
- requisition->width = 0;
- requisition->height = 0;
- return;
- }
-
- /* Chain up to parent's size_request() method. */
- GTK_WIDGET_CLASS (parent_class)->size_request (widget, requisition);
-}
-
static EAttachmentViewPrivate *
mail_attachment_bar_get_private (EAttachmentView *view)
{
@@ -461,7 +441,6 @@ static void
mail_attachment_bar_class_init (EMailAttachmentBarClass *class)
{
GObjectClass *object_class;
- GtkWidgetClass *widget_class;
parent_class = g_type_class_peek_parent (class);
g_type_class_add_private (class, sizeof (EMailAttachmentBarPrivate));
@@ -472,9 +451,6 @@ mail_attachment_bar_class_init (EMailAttachmentBarClass *class)
object_class->dispose = mail_attachment_bar_dispose;
object_class->constructed = mail_attachment_bar_constructed;
- widget_class = GTK_WIDGET_CLASS (class);
- widget_class->size_request = mail_attachment_bar_size_request;
-
g_object_class_install_property (
object_class,
PROP_ACTIVE_VIEW,