#ifndef __imageload_h
#define __imageload_h
-#ifdef USE_IMLIB2
#include "obrender/render.h"
RrImage* RrImageFetchFromFile(RrImageCache *cache, const gchar *name);
-#else
-#define RrImageFetchFromFile(cache, name) NULL
-#endif
#endif
{
ObMenuParseState *state = data;
gchar *label;
- #ifdef USE_IMLIB2
gchar *icon;
- #endif
ObMenuEntry *e;
if (state->parent) {
- #ifdef USE_IMLIB2
/* Don't try to extract "icon" attribute if icons in user-defined
menus are not enabled. */
if (!(config_menu_user_show_icons &&
obt_xml_attr_string(node, "icon", &icon)))
- icon = NULL;
- #endif
+ {
+ icon = NULL;
+ }
if (obt_xml_attr_string(node, "label", &label)) {
GSList *acts = NULL;
}
e = menu_add_normal(state->parent, -1, label, acts, TRUE);
- #ifdef USE_IMLIB2
if (icon) { /* Icon will be used. */
e->data.normal.icon = RrImageFetchFromFile(ob_rr_icons, icon);
- if (e->data.normal.icon) {
+ if (e->data.normal.icon)
e->data.normal.icon_alpha = 0xff;
- }
g_free(icon);
}
-
- menu_add_normal(state->parent, -1, label, acts, TRUE);
- #endif
g_free(label);
}
}