- doc->pdf->displayPage(doc->out, 1, 72, 0, gTrue);
- gdk_draw_pixmap (widget->window,
- widget->style->white_gc,
- doc->pixmap,
- 0, 0,
- 0, 0,
- widget->allocation.width,
- widget->allocation.height);
-
+ magic_font = widget->style->font;
+ magic_black = widget->style->black_gc;
+ gdk_draw_line (doc->pixmap,
+ widget->style->black_gc,
+ event->area.x, event->area.y,
+ event->area.width, event->area.height);
+ doc->pdf->displayPage(doc->out, 1, 86, 0, gTrue); /* 86 zoom */
+ printf ("Draw pixmap %p\n", doc->pixmap);
+ gdk_draw_string (doc->pixmap, magic_font, magic_black,
+ 300, 300, "Hello");
+ gdk_draw_pixmap(widget->window,
+ widget->style->fg_gc[GTK_WIDGET_STATE (widget)],
+ doc->pixmap,
+ 0, 0,
+ event->area.x, event->area.y,
+ event->area.width, event->area.height);