Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-window.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2005-02-01 17:21:15 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-02-01 17:21:15 (GMT)
commite6bb7c7e25b848008409db982bbac260fa97f73c (patch)
tree7242c32dea97f6840c52a81fb2ec3d6be817f272 /shell/ev-window.c
parent1cf7013b89fc6908a15f82e6425de4142f86f1ee (diff)
Support eps and check document supports find before drawing highlightings
2005-02-01 Marco Pesenti Gritti <marco@gnome.org> * shell/ev-application.c: (ev_application_open): * shell/ev-view.c: (expose_bin_window): * shell/ev-window.c: (ev_window_open): Support eps and check document supports find before drawing highlightings in expose.
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 9364c99..9eadc55 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -482,7 +482,8 @@ ev_window_open (EvWindow *ev_window, const char *uri)
document = NULL;
else if (!strcmp (mime_type, "application/pdf"))
document = g_object_new (PDF_TYPE_DOCUMENT, NULL);
- else if (!strcmp (mime_type, "application/postscript"))
+ else if (!strcmp (mime_type, "application/postscript") ||
+ !strcmp (mime_type, "image/x-eps"))
document = g_object_new (PS_TYPE_DOCUMENT, NULL);
else if (mime_type_supported_by_gdk_pixbuf (mime_type))
document = g_object_new (PIXBUF_TYPE_DOCUMENT, NULL);