look for masks in the right place. display the error with just the requested button name.

This commit is contained in:
Dana Jansens 2003-04-07 04:59:38 +00:00
parent 2da1898fc3
commit aaae49d629

View file

@ -137,14 +137,14 @@ static gboolean read_mask(XrmDatabase db, char *rname, pixmap_mask **value)
g_free(s);
themename = g_path_get_basename(engine_theme);
s = g_strdup_printf("%s_buttons/%s", engine_theme,
themename);
s = g_strdup_printf("%s/%s_buttons/%s", engine_theme,
themename, retvalue.addr);
g_free(themename);
if (XReadBitmapFileData(s, &w, &h, &b, &hx, &hy) ==
BitmapSuccess)
ret = TRUE;
else
g_message("Unable to find bitmap '%s'", s);
g_message("Unable to find bitmap '%s'", retvalue.addr);
}
}