From 8df02504363901b99bfdd0cf79d56b9e92f4f9c3 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 23 Aug 2005 08:33:52 +0000 Subject: Adapt to the new poppler rotation API. Fix text maps on landscape 2005-08-23 Marco Pesenti Gritti * pdf/ev-poppler.cc: * ps/ps-document.c: (push_pixbuf), (ps_document_widget_event): * shell/ev-view.c: (highlight_find_results): Adapt to the new poppler rotation API. Fix text maps on landscape documents. --- (limited to 'ps') diff --git a/ps/ps-document.c b/ps/ps-document.c index 5a4a457..f95dfe0 100644 --- a/ps/ps-document.c +++ b/ps/ps-document.c @@ -215,9 +215,11 @@ push_pixbuf (PSDocument *gs) cmap = gdk_window_get_colormap (gs->pstarget); gdk_drawable_get_size (gs->bpixmap, &width, &height); + LOG ("Get from drawable\n"); pixbuf = gdk_pixbuf_get_from_drawable (NULL, gs->bpixmap, cmap, 0, 0, 0, 0, width, height); + LOG ("Get from drawable done\n"); g_signal_emit_by_name (gs, "render_finished", pixbuf); g_object_unref (pixbuf); } @@ -247,6 +249,7 @@ ps_document_widget_event (GtkWidget *widget, GdkEvent *event, gpointer data) gs->busy = FALSE; push_pixbuf (gs); + LOG ("Pixbuf pushed"); } return TRUE; -- cgit v0.9.1