]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-print-operation.c
Do not disable printing when cairo printing is available.
[evince.git] / shell / ev-print-operation.c
index e737d296be3d7f1dabf03421151491c86f7e42a4..e583dfbfe81d3985b985d6780f5c528ccaa53900 100644 (file)
@@ -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)