]> Dogcows Code - chaz/openbox/blobdiff - render/font.c
maybe fix transients placed offscreen under certain conditions
[chaz/openbox] / render / font.c
index d371e8ef23c652eeef96ad45bb59a5e9cc572dea..5771a1c225b459bf03a2a35bfac3f841c67ada48 100644 (file)
@@ -28,7 +28,7 @@
 #include <glib.h>
 #include <string.h>
 #include <stdlib.h>
-#if defined(USE_PANGO) && !defined(ENABLE_NLS)
+#ifdef USE_PANGO
 #include <locale.h>
 #endif
 
@@ -134,7 +134,6 @@ static RrFont *openfont(const RrInstance *inst, gchar *fontstring)
     }
 
     /* based on gtkmain.c gtk_get_default_language() */
-    PangoLanguage *ln;
     gchar *locale, *p;
     locale = g_strdup(setlocale(LC_CTYPE, NULL));
     if ((p = strchr(locale, '.')))
@@ -143,7 +142,7 @@ static RrFont *openfont(const RrInstance *inst, gchar *fontstring)
         *p = '\0';
     PangoFontMetrics *metrics = 
         pango_context_get_metrics(context, out->pango_font_description,
-                                  ln = pango_language_from_string(locale));
+                                  pango_language_from_string(locale));
     out->pango_ascent = pango_font_metrics_get_ascent(metrics);
     out->pango_descent = pango_font_metrics_get_descent(metrics);
     g_free(locale);
@@ -292,8 +291,9 @@ void RrFontDraw(XftDraw *d, RrTextureText *t, RrRect *area)
     gint x,y,w,h;
     XftColor c;
     GString *text;
-    gint mw, mh;
+    gint mw;
 #ifndef USE_PANGO
+    gint mh;
     size_t l;
     gboolean shortened = FALSE;
 #else
This page took 0.030055 seconds and 4 git commands to generate.