all repos — openbox @ 092780455989da14b1a3a8c1624a0fd8bf5cdfdd

openbox fork - make it a bit more like ryudo

"text" was no longer needed
Dana Jansens danakj@orodu.net
commit

092780455989da14b1a3a8c1624a0fd8bf5cdfdd

parent

4717b9870c48683dc1b0e862ab2a64886ec26378

1 files changed, 2 insertions(+), 7 deletions(-)

jump to
M render/font.crender/font.c

@@ -175,7 +175,6 @@ gint x,y,w,h;

XftColor c; gint mw; PangoRectangle rect; - gchar *text; PangoAttrList* attrs = NULL; /* center the text vertically

@@ -192,13 +191,11 @@ h = area->height;

/* * * set up the layout * * */ - text = g_strdup(t->string); - if (t->shortcut) { gchar *i; gchar *lowertext; - lowertext = g_utf8_strdown(text, -1); + lowertext = g_utf8_strdown(t->string, -1); i = g_utf8_strchr(lowertext, -1, t->shortcut); if (i != NULL) { PangoAttribute *a;

@@ -214,10 +211,8 @@ }

g_free(lowertext); } - pango_layout_set_text(t->font->layout, text, -1); + pango_layout_set_text(t->font->layout, t->string, -1); pango_layout_set_width(t->font->layout, w * PANGO_SCALE); - - g_free(text); /* * * end of setting up the layout * * */