diff options
author | Marco Pesenti Gritti <marco@src.gnome.org> | 2004-12-22 14:22:25 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2004-12-22 14:22:25 (GMT) |
commit | 08dc4040951ec1e3945e07107d008a4ce7c928c9 (patch) | |
tree | f4506c46c9ea6149dce1e4904fdfd9661b1956f4 /shell | |
parent | 2ce0949d9fa8036a38799485484a55971386a5fe (diff) |
*** empty log message ***
Diffstat (limited to 'shell')
-rw-r--r-- | shell/Makefile.am | 2 | ||||
-rw-r--r-- | shell/ev-view.c | 2 | ||||
-rw-r--r-- | shell/ev-window.c | 3 |
3 files changed, 6 insertions, 1 deletions
diff --git a/shell/Makefile.am b/shell/Makefile.am index a360a94..d51abd1 100644 --- a/shell/Makefile.am +++ b/shell/Makefile.am @@ -5,6 +5,7 @@ INCLUDES= \ -I$(top_srcdir)/lib \ -I$(top_srcdir)/backend \ -I$(top_srcdir)/pdf/xpdf \ + -I$(top_srcdir)/ps \ -DGNOMELOCALEDIR=\"$(datadir)/locale\" \ -DGNOMEICONDIR=\""$(datadir)/pixmaps"\" \ $(SHELL_CFLAGS) \ @@ -40,6 +41,7 @@ evince_LDADD= \ $(SHELL_LIBS) \ $(top_builddir)/backend/libevbackend.la \ $(top_builddir)/pdf/xpdf/libpdfdocument.la \ + $(top_builddir)/ps/libgtkgs.la \ $(NULL) BUILT_SOURCES = ev-marshal.h ev-marshal.c diff --git a/shell/ev-view.c b/shell/ev-view.c index dd8723d..4553525 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -295,7 +295,7 @@ expose_bin_window (GtkWidget *widget, EvView *view = EV_VIEW (widget); int i; const EvFindResult *results; - + if (view->document) ev_document_render (view->document, event->area.x, event->area.y, diff --git a/shell/ev-window.c b/shell/ev-window.c index fb3570a..b23a1a6 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -36,6 +36,7 @@ #include "eggfindbar.h" #include "pdf-document.h" +#include "gtkgs.h" #include <glib/gi18n.h> #include <gtk/gtk.h> @@ -214,6 +215,8 @@ ev_window_open (EvWindow *ev_window, const char *uri) if (!strcmp (mime_type, "application/pdf")) document = g_object_new (PDF_TYPE_DOCUMENT, NULL); + else if (!strcmp (mime_type, "application/postscript")) + document = g_object_new (GTK_GS_TYPE, NULL); if (document) { GError *error = NULL; |