From: Dana Jansens Date: Fri, 25 May 2007 18:38:11 +0000 (+0000) Subject: don't use "normal" in the gtk font string X-Git-Tag: release-2.0.2~183 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=6ca1cd8ef956a8c4d9b247be90c450277d8d8325;p=dana%2Fobconf.git don't use "normal" in the gtk font string --- diff --git a/src/handlers.c b/src/handlers.c index cb0ae51..a6f856f 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -511,6 +511,14 @@ void setup_font_active(GtkWidget *w) name = g_strdup(names[0]); g_strfreev(names); + /* don't use "normal" in the gtk string */ + if (!g_ascii_strcasecmp(weight, "normal")) { + g_free(weight); weight = g_strdup(""); + } + if (!g_ascii_strcasecmp(slant, "normal")) { + g_free(slant); slant = g_strdup(""); + } + fontstring = g_strdup_printf("%s %s %s %s", name, weight, slant, size); gtk_font_button_set_font_name(GTK_FONT_BUTTON(w), fontstring); g_free(fontstring);