#include <X11/Xft/Xft.h>
#include <glib.h>
#include <string.h>
+#include <stdlib.h>
#define ELIPSES "..."
#define ELIPSES_LENGTH(font) \
{
gint x, y;
font_measure_full (f, str, &x, &y);
- return x;
+ return x + 4;
}
int RrFontHeight(const RrFont *f)
XftDrawStringUtf8(d, &c, t->font->xftfont, x,
t->font->xftfont->ascent + y,
(FcChar8*)text->str, l);
+
+ g_string_free(text, TRUE);
return;
}