]> www.fi.muni.cz Git - evince.git/commitdiff
disable File->Print if the document does not implement the ps exporter
authorMatthew S. Wilson <msw@rpath.com>
Mon, 4 Jul 2005 14:26:18 +0000 (14:26 +0000)
committerMatt Wilson <msw@src.gnome.org>
Mon, 4 Jul 2005 14:26:18 +0000 (14:26 +0000)
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

ChangeLog
shell/ev-window.c

index 03fcb83ac6aaf062d081131fc499f3f90d1bd2d5..4d1a06b1b814c5d0e421aa4a5eb1e92a5ecaa8dc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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
+
 2005-07-04  Marco Pesenti Gritti  <mpg@redhat.com>
 
        * Makefile.am:
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;
        }