]> Dogcows Code - chaz/openbox/commitdiff
rename the button_dir var to data_dir.. pointless :>
authorDana Jansens <danakj@orodu.net>
Sat, 28 Jun 2003 15:53:37 +0000 (15:53 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 28 Jun 2003 15:53:37 +0000 (15:53 +0000)
render/theme.c

index c80f485751771b0f416fc6a502ad0a9f9ccef438..106130e1e28f0d59d97e58e097bd0963dcd5ccbe 100644 (file)
@@ -721,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;
@@ -730,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;
@@ -765,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.025417 seconds and 4 git commands to generate.