Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-sidebar-attachments.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2009-08-18 08:18:55 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2009-09-15 13:56:00 (GMT)
commit3d3328b2597e9b85afcb552ffc6abdeca1e3e3a7 (patch)
tree2680dd2af2fca3c9ddf2a70d791ca189bf3324ee /shell/ev-sidebar-attachments.c
parent68172538bd783a8ad763e8e3416e4081fcc06580 (diff)
Remove attachments from EvDocument interface and use EvDocumentAttachments instead
Diffstat (limited to 'shell/ev-sidebar-attachments.c')
-rw-r--r--shell/ev-sidebar-attachments.c7
1 files changed, 3 insertions, 4 deletions
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 <glib/gstdio.h>
#include <gtk/gtk.h>
+#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*