X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-print-operation.c;h=e583dfbfe81d3985b985d6780f5c528ccaa53900;hb=51d4c0c6de63d78e9df04df525df35351b8bb454;hp=e737d296be3d7f1dabf03421151491c86f7e42a4;hpb=d337cbe9269e142f0b70e12a8c58296fe34b4892;p=evince.git diff --git a/shell/ev-print-operation.c b/shell/ev-print-operation.c index e737d296..e583dfbf 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)