]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-application.c
Translation updated by Tino Meinen.
[evince.git] / shell / ev-application.c
index 05f86ce85bc8df5308d022d55ece7f33b6979e3a..a1dec925a8d1b4af9417b951f9338120a199d7d6 100644 (file)
@@ -29,9 +29,6 @@
 #include <gtk/gtkstock.h>
 #include <gtk/gtkwidget.h>
 #include <gtk/gtkmain.h>
-#include <libgnomevfs/gnome-vfs-utils.h>
-
-#include "ev-window.h"
 
 struct _EvApplicationPrivate {
        GList *windows;
@@ -132,12 +129,16 @@ 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, "application/x-gzpostscript");
+       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 (both_filter, "application/x-gzpostscript");
+       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,30 +170,6 @@ ev_application_open (EvApplication *application, GError *err)
        gtk_widget_destroy (GTK_WIDGET (chooser));
 }
 
-void
-ev_application_open_link (EvApplication *application,
-                         EvWindow      *window,
-                         EvLink        *link,
-                         GError        *error)
-{
-       EvLinkType type;
-       const char *uri;
-
-       type = ev_link_get_link_type (link);
-       
-       switch (type) {
-               case EV_LINK_TYPE_TITLE:
-                       break;
-               case EV_LINK_TYPE_PAGE:
-                       ev_window_open_link (window, link);
-                       break;
-               case EV_LINK_TYPE_EXTERNAL_URI:
-                       uri = ev_link_get_uri (link);
-                       gnome_vfs_url_show (uri);
-                       break;
-       }
-}
-
 static void
 ev_application_class_init (EvApplicationClass *ev_application_class)
 {