+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.
+
2005-01-13 Jeff Muizelaar <jeff@nit.ca>
* pixbuf/pixbuf-document.c:
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 ();
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,
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);