]> Dogcows Code - chaz/openbox/blobdiff - render/theme.c
dont need to raise after adding
[chaz/openbox] / render / theme.c
index 3da9986848671977935f9d17e85920624fe71bc0..106130e1e28f0d59d97e58e097bd0963dcd5ccbe 100644 (file)
@@ -164,6 +164,7 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name)
         font_str = "NLIMC";
     theme->title_layout = g_strdup(font_str);
 
+    /* load direct dimensions */
     if (!read_int(db, "handleWidth", &theme->handle_height) ||
        theme->handle_height < 0 || theme->handle_height > 100)
         theme->handle_height = 6;
@@ -720,7 +721,7 @@ static gboolean read_mask(XrmDatabase db, const RrInstance *inst,
     char *rclass = create_class_name(rname);
     char *rettype;
     char *s;
-    char *button_dir;
+    char *data_dir;
     XrmValue retvalue;
     int hx, hy; /* ignored */
     unsigned int w, h;
@@ -729,16 +730,16 @@ static gboolean read_mask(XrmDatabase db, const RrInstance *inst,
     if (XrmGetResource(db, rname, rclass, &rettype, &retvalue) &&
         retvalue.addr != NULL) {
 
-       button_dir = g_strdup_printf("%s_data", theme);
+       data_dir = g_strdup_printf("%s_data", theme);
 
         s = g_build_filename(g_get_home_dir(), ".openbox", "themes",
-                             button_dir, retvalue.addr, NULL);
+                             data_dir, retvalue.addr, NULL);
 
         if (XReadBitmapFileData(s, &w, &h, &b, &hx, &hy) == BitmapSuccess)
             ret = TRUE;
         else {
             g_free(s);
-            s = g_build_filename(THEMEDIR, button_dir, retvalue.addr, NULL);
+            s = g_build_filename(THEMEDIR, data_dir, retvalue.addr, NULL);
        
             if (XReadBitmapFileData(s, &w, &h, &b, &hx, &hy) == BitmapSuccess) 
                 ret = TRUE;
@@ -764,7 +765,7 @@ static gboolean read_mask(XrmDatabase db, const RrInstance *inst,
         }
       
         g_free(s);
-        g_free(button_dir);
+        g_free(data_dir);
     }
 
     g_free(rclass);
This page took 0.028865 seconds and 4 git commands to generate.