[gucharmap] Fix gtk2 build
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gucharmap] Fix gtk2 build
- Date: Sun, 3 Oct 2010 15:02:02 +0000 (UTC)
commit 2bf360a20e9f3324f6b32e81665840e90b996d49
Author: Christian Persch <chpe gnome org>
Date: Sun Oct 3 17:01:46 2010 +0200
Fix gtk2 build
gucharmap/gucharmap-chartable.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gucharmap/gucharmap-chartable.c b/gucharmap/gucharmap-chartable.c
index 1dc63e5..4d0f60e 100644
--- a/gucharmap/gucharmap-chartable.c
+++ b/gucharmap/gucharmap-chartable.c
@@ -670,7 +670,13 @@ create_glyph_pixbuf (GucharmapChartable *chartable,
surface = create_glyph_surface (chartable, wc, font_factor, draw_font_family,
&width, &height);
+#if GTK_CHECK_VERSION (2, 91, 0)
pixbuf = gdk_pixbuf_get_from_surface (surface, 0, 0, width, height);
+#else
+ pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, width, height);
+ gdk_pixbuf_get_from_surface (pixbuf, surface, 0, 0, 0, 0, width, height);
+#endif
+
cairo_surface_destroy (surface);
if (zoom_surface_width)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]