From 27a43b9586896427e70a7423c7527337d9f56240 Mon Sep 17 00:00:00 2001 From: "Matthew S. Wilson" Date: Mon, 4 Jul 2005 14:26:18 +0000 Subject: [PATCH] disable File->Print if the document does not implement the ps exporter 2005-07-04 Matthew S. Wilson * shell/ev-window.c (update_action_sensitivity): disable File->Print if the document does not implement the ps exporter interface --- ChangeLog | 6 ++++++ shell/ev-window.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 03fcb83a..4d1a06b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-07-04 Matthew S. Wilson + + * shell/ev-window.c (update_action_sensitivity): disable + File->Print if the document does not implement the ps exporter + interface + 2005-07-04 Marco Pesenti Gritti * Makefile.am: diff --git a/shell/ev-window.c b/shell/ev-window.c index 1c1d8354..854079b5 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -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; } -- 2.43.5