Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-print-operation.c
diff options
context:
space:
mode:
authorHib Eris <hib@hiberis.nl>2009-06-08 17:25:28 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2009-06-09 09:30:24 (GMT)
commit51d4c0c6de63d78e9df04df525df35351b8bb454 (patch)
tree5b85b0768eecbe70b3fc42cdfb60c878733a26d0 /shell/ev-print-operation.c
parentd337cbe9269e142f0b70e12a8c58296fe34b4892 (diff)
Do not disable printing when cairo printing is available.
Diffstat (limited to 'shell/ev-print-operation.c')
-rw-r--r--shell/ev-print-operation.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/shell/ev-print-operation.c b/shell/ev-print-operation.c
index e737d29..e583dfb 100644
--- a/shell/ev-print-operation.c
+++ b/shell/ev-print-operation.c
@@ -1643,6 +1643,15 @@ ev_print_operation_print_class_init (EvPrintOperationPrintClass *klass)
}
#endif /* GTK_CHECK_VERSION (2, 17, 1) */
+gboolean ev_print_operation_exists_for_document (EvDocument *document)
+{
+#if GTK_CHECK_VERSION (2, 17, 1)
+ return (EV_IS_FILE_EXPORTER(document) || EV_IS_DOCUMENT_PRINT(document));
+#else
+ return EV_IS_FILE_EXPORTER(document);
+#endif
+}
+
/* Factory method */
EvPrintOperation *
ev_print_operation_new (EvDocument *document)