dwm.c
branchstil
changeset 1534 ff21639cb978
parent 1532 4a1df4ff7ca3
child 1536 932900ff8dbb
child 1537 c7a2261b5414
--- a/dwm.c	Wed Feb 02 22:33:33 2011 +0300
+++ b/dwm.c	Tue Jun 14 07:29:06 2011 +0400
@@ -270,6 +270,7 @@
 
 /* configuration, allows nested code to access above variables */
 #include "push.h"
+#include "layouts/fibonacci.h"
 #include "config.h"
 
 struct Monitor {
@@ -298,6 +299,7 @@
 };
 
 #include "push.c"
+#include "layouts/fibonacci.c"
 
 /* compile-time check if all tags fit into an unsigned int bit array. */
 struct NumTags { char limitexceeded[LENGTH(tags) > 31 ? -1 : 1]; };
@@ -805,7 +807,7 @@
 	memcpy(buf, text, len);
 	if(len < olen)
 		for(i = len; i && i > len - 3; buf[--i] = '.');
-	pango_layout_set_text(dc.plo, text, len);
+	pango_layout_set_markup(dc.plo, text, len);
 	pango_xft_render_layout(dc.xftdrawable, (col==dc.norm?dc.xftnorm:dc.xftsel)+(invert?ColBG:ColFG), dc.plo, x * PANGO_SCALE, y * PANGO_SCALE);
 }
 
@@ -1617,7 +1619,7 @@
 int
 textnw(const char *text, unsigned int len) {
 	PangoRectangle r;
-	pango_layout_set_text(dc.plo, text, len);
+	pango_layout_set_markup(dc.plo, text, len);
 	pango_layout_get_extents(dc.plo, &r, 0);
 	return r.width / PANGO_SCALE;
 }