X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-application.c;h=eabcea7f53eb45b136f8826e57204c71bea73ee1;hb=8dbcee6be49013edc9821096288e2c078169e349;hp=6fe50aaa67a92b8250027200254f4d0ee0c54b05;hpb=c43d8117b5174476437718101d58117ad9191c84;p=evince.git diff --git a/shell/ev-application.c b/shell/ev-application.c index 6fe50aaa..eabcea7f 100644 --- a/shell/ev-application.c +++ b/shell/ev-application.c @@ -29,9 +29,6 @@ #include #include #include -#include - -#include "ev-window.h" struct _EvApplicationPrivate { GList *windows; @@ -132,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 (); @@ -169,32 +168,6 @@ ev_application_open (EvApplication *application, GError *err) gtk_widget_destroy (GTK_WIDGET (chooser)); } -void -ev_application_open_bookmark (EvApplication *application, - EvDocument *document, - EvBookmark *bookmark, - GError *error) -{ - EvBookmarkType type; - const char *uri; - int page; - - type = ev_bookmark_get_bookmark_type (bookmark); - - switch (type) { - case EV_BOOKMARK_TYPE_TITLE: - break; - case EV_BOOKMARK_TYPE_LINK: - page = ev_bookmark_get_page (bookmark); - ev_document_set_page (document, page); - break; - case EV_BOOKMARK_TYPE_EXTERNAL_URI: - uri = ev_bookmark_get_uri (bookmark); - gnome_vfs_url_show (uri); - break; - } -} - static void ev_application_class_init (EvApplicationClass *ev_application_class) {