X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=libi3%2Fstring.c;h=edd588da1492a26a0acb2dc6d2998af4392416cf;hb=f7565b5f3238f1229608131e6358350538e262fa;hp=328b41c092c07b23b241f8455c023bba3ddd945d;hpb=d622df70ad1fc10c87fedf55e8f0cac0fff3e6be;p=i3%2Fi3 diff --git a/libi3/string.c b/libi3/string.c index 328b41c0..edd588da 100644 --- a/libi3/string.c +++ b/libi3/string.c @@ -9,15 +9,12 @@ * others want UTF-8 (Pango). * */ +#include "libi3.h" #include #include -#if PANGO_SUPPORT #include -#endif - -#include "libi3.h" struct _i3String { char *utf8; @@ -192,15 +189,11 @@ void i3string_set_markup(i3String *str, bool pango_markup) { * Escape pango markup characters in the given string. */ i3String *i3string_escape_markup(i3String *str) { -#if PANGO_SUPPORT const char *text = i3string_as_utf8(str); char *escaped = g_markup_escape_text(text, -1); i3String *result = i3string_from_utf8(escaped); free(escaped); return result; -#else - return str; -#endif } /*