diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-01 18:23:23 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-01 18:23:23 +0000 |
| commit | b98021773bd39d70a0742176db73de9f81695576 (patch) | |
| tree | a6571ec7e162d4cb880eb500af574cd43983e1f0 /render | |
| parent | 0c2ee993881175b285e66b6e277f1fb0e3f12ad8 (diff) | |
look for masks only where the themerc was read from
Diffstat (limited to 'render')
| -rw-r--r-- | render/theme.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/render/theme.c b/render/theme.c index 37bc4717..50df6791 100644 --- a/render/theme.c +++ b/render/theme.c @@ -1040,28 +1040,12 @@ static gboolean read_mask(const RrInstance *inst, unsigned int w, h; unsigned char *b; - s = g_build_filename(g_get_home_dir(), ".openbox", "themes", - theme->name, maskname, NULL); - if (XReadBitmapFileData(s, &w, &h, &b, &hx, &hy) == BitmapSuccess) + s = g_build_filename(theme->path, maskname, NULL); + if (XReadBitmapFileData(s, &w, &h, &b, &hx, &hy) == BitmapSuccess) { ret = TRUE; - else { - g_free(s); - s = g_build_filename(THEMEDIR, theme->name, maskname, NULL); - if (XReadBitmapFileData(s, &w, &h, &b, &hx, &hy) == BitmapSuccess) - ret = TRUE; - else { - g_free(s); - s = g_build_filename(theme->path, maskname, NULL); - if (XReadBitmapFileData(s, &w, &h, &b, &hx, &hy) == BitmapSuccess) - ret = TRUE; - } - } - - if (ret) { *value = RrPixmapMaskNew(inst, w, h, (char*)b); XFree(b); } - g_free(s); return ret; |
