]> Dogcows Code - chaz/openbox/blobdiff - engines/openbox/theme.c
make these things one 'command' without braces
[chaz/openbox] / engines / openbox / theme.c
index 154aae83900cd105141674375910de642f5953ab..c775ff9ecdbfc0e3fd355785b03d9f813636f69d 100644 (file)
@@ -156,9 +156,13 @@ gboolean read_mask(XrmDatabase db, char *rname, pixmap_mask **value)
             if (XReadBitmapFileData(s, &w, &h, &b, &hx, &hy) == BitmapSuccess) 
                 ret = TRUE;
             else {
+                char *themename;
+
                 g_free(s);
+                themename = g_path_get_basename(theme.string);
                 s = g_strdup_printf("%s_buttons/%s", theme.string,
-                                    theme.string);
+                                    themename);
+                g_free(themename);
                 if (XReadBitmapFileData(s, &w, &h, &b, &hx, &hy) ==
                     BitmapSuccess) 
                     ret = TRUE;
This page took 0.023886 seconds and 4 git commands to generate.