]> www.fi.muni.cz Git - evince.git/commitdiff
Open gzipped ps documents
authorMarco Pesenti Gritti <marco@gnome.org>
Fri, 4 Feb 2005 15:17:10 +0000 (15:17 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Fri, 4 Feb 2005 15:17:10 +0000 (15:17 +0000)
2005-02-04  Marco Pesenti Gritti  <marco@gnome.org>

        * shell/ev-application.c: (ev_application_open):
        * shell/ev-window.c: (ev_window_open):

        Open gzipped ps documents

ChangeLog
shell/ev-application.c
shell/ev-window.c

index 0224ec0c60c8c9980e2a5366ce59dde63381ca6e..1da1c957be6a6b2134a10baaf230c96df67c2549 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-02-04  Marco Pesenti Gritti  <marco@gnome.org>
+
+       * shell/ev-application.c: (ev_application_open):
+       * shell/ev-window.c: (ev_window_open):
+
+       Open gzipped ps documents
+
 2005-02-04  Marco Pesenti Gritti  <marco@gnome.org>
 
        * TODO:
index eabcea7f53eb45b136f8826e57204c71bea73ee1..a1dec925a8d1b4af9417b951f9338120a199d7d6 100644 (file)
@@ -129,6 +129,7 @@ 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);
@@ -136,6 +137,7 @@ ev_application_open (EvApplication *application, GError *err)
        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);
 
index 368919ad9ccc84a7b8c824aabbf157f24641af82..e5c6bace054f7391cdccb78d2220c2d292300cd5 100644 (file)
@@ -498,6 +498,7 @@ ev_window_open (EvWindow *ev_window, const char *uri)
        else if (!strcmp (mime_type, "application/pdf"))
                document = g_object_new (PDF_TYPE_DOCUMENT, NULL);
        else if (!strcmp (mime_type, "application/postscript") ||
+                !strcmp (mime_type, "application/x-gzpostscript") ||
                 !strcmp (mime_type, "image/x-eps"))
                document = g_object_new (PS_TYPE_DOCUMENT, NULL);
        else if (mime_type_supported_by_gdk_pixbuf (mime_type))