From 3d3328b2597e9b85afcb552ffc6abdeca1e3e3a7 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Tue, 18 Aug 2009 08:18:55 +0000 Subject: Remove attachments from EvDocument interface and use EvDocumentAttachments instead --- (limited to 'shell/ev-sidebar-attachments.c') diff --git a/shell/ev-sidebar-attachments.c b/shell/ev-sidebar-attachments.c index 677d61f..e0779f0 100644 --- a/shell/ev-sidebar-attachments.c +++ b/shell/ev-sidebar-attachments.c @@ -31,6 +31,7 @@ #include #include +#include "ev-document-attachments.h" #include "ev-jobs.h" #include "ev-job-scheduler.h" #include "ev-file-helpers.h" @@ -656,9 +657,6 @@ ev_sidebar_attachments_set_document (EvSidebarPage *page, { EvSidebarAttachments *ev_attachbar = EV_SIDEBAR_ATTACHMENTS (page); EvJob *job; - - if (!ev_document_has_attachments (document)) - return; if (!ev_attachbar->priv->icon_theme) { GdkScreen *screen; @@ -688,7 +686,8 @@ static gboolean ev_sidebar_attachments_support_document (EvSidebarPage *sidebar_page, EvDocument *document) { - return ev_document_has_attachments (document); + return (EV_IS_DOCUMENT_ATTACHMENTS (document) && + ev_document_attachments_has_attachments (document)); } static const gchar* -- cgit v0.9.1