Package: sawfish / 1:1.5.3-2.4

guard_pangox_functions.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Guard pango_x_ functions
 sawfish calls a pango_x_ function without guarding the call by an appropriate 
 HAVE_PANGO_X. Since pangox is going away, guarding it will avoid a FTBFS.
Author: Emilio Pozuelo Monfort <pochu@debian.org>
Origin: Debian, http://bugs.debian.org/701837#5
Bug-Debian: http://bugs.debian.org/713619
Reviewed-by: David Prévot <taffit@debian.org>
Last-Update: 2013-07-06
--- a/src/fonts.c
+++ b/src/fonts.c
@@ -514,9 +514,9 @@
 #ifdef HAVE_PANGO_XFT
 	if (PANGO_XFT_IS_FONT (font))
 	    pango_xft_render (draw, xft_color, font, glyphs, x, y);
-	else
-#endif
+#else
 	    pango_x_render (dpy, id, gc, font, glyphs, x, y);
+#endif
 
 	x += rect.width / PANGO_SCALE;
     }