From 08dc4040951ec1e3945e07107d008a4ce7c928c9 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 22 Dec 2004 14:22:25 +0000 Subject: *** empty log message *** --- (limited to 'shell') 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 #include @@ -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; -- cgit v0.9.1