Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-application.c2
-rw-r--r--shell/ev-view.c4
-rw-r--r--shell/ev-window.c3
3 files changed, 7 insertions, 2 deletions
diff --git a/shell/ev-application.c b/shell/ev-application.c
index 6664c6a..eabcea7 100644
--- a/shell/ev-application.c
+++ b/shell/ev-application.c
@@ -129,12 +129,14 @@ ev_application_open (EvApplication *application, GError *err)
gtk_file_filter_set_name (both_filter,
_("PostScript and PDF Documents"));
gtk_file_filter_add_mime_type (both_filter, "application/postscript");
+ gtk_file_filter_add_mime_type (both_filter, "image/x-eps");
gtk_file_filter_add_mime_type (both_filter, "application/pdf");
gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (chooser), both_filter);
ps_filter = gtk_file_filter_new ();
gtk_file_filter_set_name (ps_filter, _("PostScript Documents"));
gtk_file_filter_add_mime_type (ps_filter, "application/postscript");
+ gtk_file_filter_add_mime_type (ps_filter, "image/x-eps");
gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (chooser), ps_filter);
pdf_filter = gtk_file_filter_new ();
diff --git a/shell/ev-view.c b/shell/ev-view.c
index 947feef..291b3c5 100644
--- a/shell/ev-view.c
+++ b/shell/ev-view.c
@@ -411,7 +411,9 @@ expose_bin_window (GtkWidget *widget,
event->area.x, event->area.y,
event->area.width, event->area.height);
- highlight_find_results (view);
+ if (EV_IS_DOCUMENT_FIND (view->document)) {
+ highlight_find_results (view);
+ }
if (view->has_selection) {
draw_rubberband (widget, view->bin_window,
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);