Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMatthew S. Wilson <msw@rpath.com>2005-07-04 14:26:18 (GMT)
committer Matt Wilson <msw@src.gnome.org>2005-07-04 14:26:18 (GMT)
commit27a43b9586896427e70a7423c7527337d9f56240 (patch)
treed9dbb66dfbed345bf05190656bc1812bff6fc389 /shell
parent2ad5c80aafe43d53698e1084db86e34bf15290a9 (diff)
disable File->Print if the document does not implement the ps exporter
2005-07-04 Matthew S. Wilson <msw@rpath.com> * shell/ev-window.c (update_action_sensitivity): disable File->Print if the document does not implement the ps exporter interface
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-window.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 1c1d835..854079b 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;
}