[poppler] poppler/test: gtk-cairo-test.cc,1.5,1.6

Martin Kretzschmar m_kretzschmar at freedesktop.org
Sat Jul 16 05:55:32 EST 2005


Update of /cvs/poppler/poppler/test
In directory gabe:/tmp/cvs-serv25856/test

Modified Files:
	gtk-cairo-test.cc 
Log Message:
update for 2005-06-27 change to actually display something again.


Index: gtk-cairo-test.cc
===================================================================
RCS file: /cvs/poppler/poppler/test/gtk-cairo-test.cc,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- gtk-cairo-test.cc	17 May 2005 23:38:27 -0000	1.5
+++ gtk-cairo-test.cc	15 Jul 2005 19:55:30 -0000	1.6
@@ -39,7 +39,8 @@
   
   virtual ~GDKCairoOutputDev();
 
-  virtual void GDKCairoOutputDev::createCairo(GfxState *state);
+  // Start a page.
+  virtual void startPage(int pageNum, GfxState *state);
 
   //----- special access
 
@@ -74,14 +75,13 @@
   redrawCbk = redrawCbkA;
   redrawCbkData = redrawCbkDataA;
   pixmap = NULL;
-  createCairo (NULL);
 }
 
 GDKCairoOutputDev::~GDKCairoOutputDev() {
 }
 
 void
-GDKCairoOutputDev::createCairo(GfxState *state) {
+GDKCairoOutputDev::startPage(int pageNum, GfxState *state) {
   Display *display;
   Drawable xid;
   GdkGC *gc;
@@ -116,9 +116,11 @@
     surface = cairo_xlib_surface_create(display, xid,
 					DefaultVisual(display, DefaultScreen(display)),
 					w, h);
-    cairo = cairo_create (surface);
+    setSurface(surface);
     cairo_surface_destroy (surface);
   }
+
+  CairoOutputDev::startPage(pageNum, state);
 }
 
 void GDKCairoOutputDev::redraw(int srcX, int srcY,



More information about the poppler mailing list