}
#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)
GType ev_print_operation_get_type (void) G_GNUC_CONST;
+gboolean ev_print_operation_exists_for_document (EvDocument *document);
EvPrintOperation *ev_print_operation_new (EvDocument *document);
void ev_print_operation_set_current_page (EvPrintOperation *op,
gint current_page);
ok_to_copy = (info->permissions & EV_DOCUMENT_PERMISSIONS_OK_TO_COPY);
}
- if (has_document && !EV_IS_FILE_EXPORTER(document))
+ if (has_document && !ev_print_operation_exists_for_document(document))
ok_to_print = FALSE;
#ifdef WITH_GCONF