- if (!read_mask(inst, "close.xbm", theme, &theme->close_mask)) {
- char data[] = { 0x63, 0x77, 0x3e, 0x1c, 0x3e, 0x77, 0x63 };
- theme->close_mask = RrPixmapMaskNew(inst, 7, 7, data);
- }
+ if (read_mask(inst, "close.xbm", theme, &theme->close_mask)) {
+ if (!read_mask(inst, "close_pressed.xbm", theme,
+ &theme->close_pressed_mask)) {
+ theme->close_pressed_mask = RrPixmapMaskCopy(theme->close_mask);
+ }
+ if (!read_mask(inst, "close_disabled.xbm", theme,
+ &theme->close_disabled_mask)) {
+ theme->close_disabled_mask = RrPixmapMaskCopy(theme->close_mask);
+ }
+ if (!read_mask(inst, "close_hover.xbm", theme,
+ &theme->close_hover_mask)) {
+ theme->close_hover_mask = RrPixmapMaskCopy(theme->close_mask);
+ }
+ } else {
+ {
+ guchar data[] = { 0x63, 0x77, 0x3e, 0x1c, 0x3e, 0x77, 0x63 };
+ theme->close_mask = RrPixmapMaskNew(inst, 7, 7, (char*)data);
+ }
+ theme->close_pressed_mask = RrPixmapMaskCopy(theme->close_mask);
+ theme->close_disabled_mask = RrPixmapMaskCopy(theme->close_mask);
+ theme->close_hover_mask = RrPixmapMaskCopy(theme->close_mask);
+ }
+
+ if (!read_mask(inst, "bullet.xbm", theme, &theme->menu_bullet_mask)) {
+ guchar data[] = { 0x01, 0x03, 0x07, 0x0f, 0x07, 0x03, 0x01 };
+ theme->menu_bullet_mask = RrPixmapMaskNew(inst, 4, 7, (char*)data);
+ }