From 55cbca7fd12e74047036b8e29976dbb1638f2f58 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Thu, 29 Jul 1999 22:37:06 +0000 Subject: [PATCH] Colours, and cut down bug to clipping regions. --- pdf/xpdf/gpdf.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pdf/xpdf/gpdf.cc b/pdf/xpdf/gpdf.cc index b1c01800..adcdc933 100644 --- a/pdf/xpdf/gpdf.cc +++ b/pdf/xpdf/gpdf.cc @@ -54,6 +54,7 @@ struct DOC_ROOT { GdkPixmap *pixmap; OutputDev *out; GdkColor paper; + GtkScrolledWindow *scroll; }; static void @@ -106,7 +107,8 @@ doc_config_event (GtkWidget *widget, void *ugly) printf ("Creating pixmap of size %d %d\n", widget->allocation.width, widget->allocation.height); gdk_color_white (gtk_widget_get_default_colormap(), &doc->paper); - doc->out = new GOutputDev (doc->pixmap, doc->paper); + doc->out = new GOutputDev (doc->pixmap, doc->paper, + gtk_widget_get_parent_window (widget)); { -- 2.43.5