diff options
author | Rodrigo Moya <rodrigo@gnome-db.org> | 2010-12-10 20:15:27 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-01-25 23:37:16 +0800 |
commit | b7c2f49973b93c2e80bed6f10c534af17b757c04 (patch) | |
tree | 938da8b0b636884610fa745542cb85f100fc8331 /mail | |
parent | a2f59fe0fc9e1b8737759ecb884bca18fa8defe3 (diff) | |
download | gsoc2013-evolution-b7c2f49973b93c2e80bed6f10c534af17b757c04.tar gsoc2013-evolution-b7c2f49973b93c2e80bed6f10c534af17b757c04.tar.gz gsoc2013-evolution-b7c2f49973b93c2e80bed6f10c534af17b757c04.tar.bz2 gsoc2013-evolution-b7c2f49973b93c2e80bed6f10c534af17b757c04.tar.lz gsoc2013-evolution-b7c2f49973b93c2e80bed6f10c534af17b757c04.tar.xz gsoc2013-evolution-b7c2f49973b93c2e80bed6f10c534af17b757c04.tar.zst gsoc2013-evolution-b7c2f49973b93c2e80bed6f10c534af17b757c04.zip |
Adapt size_request vfuncs to latest gtk+-3.0 API.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/e-mail-attachment-bar.c | 24 |
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, |