]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-window.c
disable File->Print if the document does not implement the ps exporter
[evince.git] / shell / ev-window.c
index 1c1d83546deedaae9b6ad60743d21d21122a4ba9..854079b573e0888cfbb9a4c2929daeafce1adf06 100644 (file)
@@ -38,6 +38,7 @@
 #include "ev-password-view.h"
 #include "ev-print-job.h"
 #include "ev-properties-dialog.h"
+#include "ev-ps-exporter.h"
 #include "ev-document-thumbnails.h"
 #include "ev-document-links.h"
 #include "ev-document-fonts.h"
@@ -237,6 +238,9 @@ update_action_sensitivity (EvWindow *ev_window)
                ok_to_copy = (info->permissions & EV_DOCUMENT_PERMISSIONS_OK_TO_COPY);
        }
 
+       if (has_document && !EV_IS_PS_EXPORTER(document))
+               ok_to_print = FALSE;
+
        if (!info || info->fields_mask == 0) {
                has_properties = FALSE;
        }