summaryrefslogtreecommitdiff
path: root/render/theme.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-06-28 15:53:37 +0000
committerDana Jansens <danakj@orodu.net>2003-06-28 15:53:37 +0000
commit0a459f7a57f765d6e32dabacf6ff826cc66ff641 (patch)
tree76b27490cd58e271671029c84e7f24c6990f1ea4 /render/theme.c
parentbbe0e7da261a0c318aadf08b19dafe310d27bbe8 (diff)
rename the button_dir var to data_dir.. pointless :>
Diffstat (limited to 'render/theme.c')
-rw-r--r--render/theme.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/render/theme.c b/render/theme.c
index c80f4857..106130e1 100644
--- a/render/theme.c
+++ b/render/theme.c
@@ -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);