+ if (!read_mask(inst, path, theme, "desk_pressed.xbm",
+ &theme->desk_pressed_mask))
+ theme->desk_pressed_mask = RrPixmapMaskCopy(theme->desk_mask);
+ if (!read_mask(inst, path, theme, "desk_disabled.xbm",
+ &theme->desk_disabled_mask))
+ theme->desk_disabled_mask = RrPixmapMaskCopy(theme->desk_mask);
+ if (!read_mask(inst, path, theme, "desk_hover.xbm",
+ &theme->desk_hover_mask))
+ theme->desk_hover_mask = RrPixmapMaskCopy(theme->desk_mask);
+ if (!read_mask(inst, path, theme, "desk_toggled_pressed.xbm",
+ &theme->desk_toggled_pressed_mask))
+ theme->desk_toggled_pressed_mask =
+ RrPixmapMaskCopy(theme->desk_toggled_mask);
+ if (!read_mask(inst, path, theme, "desk_toggled_hover.xbm",
+ &theme->desk_toggled_hover_mask))
+ theme->desk_toggled_hover_mask =
+ RrPixmapMaskCopy(theme->desk_toggled_mask);
+
+ /* shade button masks */
+ if (!read_mask(inst, path, theme, "shade.xbm", &theme->shade_mask)) {
+ guchar data[] = { 0x3f, 0x3f, 0x00, 0x00, 0x00, 0x00 };
+ theme->shade_mask = RrPixmapMaskNew(inst, 6, 6, (gchar*)data);
+ }
+ if (!read_mask(inst, path, theme, "shade_toggled.xbm",
+ &theme->shade_toggled_mask))
+ theme->shade_toggled_mask = RrPixmapMaskCopy(theme->shade_mask);
+ if (!read_mask(inst, path, theme, "shade_pressed.xbm",
+ &theme->shade_pressed_mask))
+ theme->shade_pressed_mask = RrPixmapMaskCopy(theme->shade_mask);
+ if (!read_mask(inst, path, theme, "shade_disabled.xbm",
+ &theme->shade_disabled_mask))
+ theme->shade_disabled_mask = RrPixmapMaskCopy(theme->shade_mask);
+ if (!read_mask(inst, path, theme, "shade_hover.xbm",
+ &theme->shade_hover_mask))
+ theme->shade_hover_mask = RrPixmapMaskCopy(theme->shade_mask);
+ if (!read_mask(inst, path, theme, "shade_toggled_pressed.xbm",
+ &theme->shade_toggled_pressed_mask))
+ theme->shade_toggled_pressed_mask =
+ RrPixmapMaskCopy(theme->shade_toggled_mask);
+ if (!read_mask(inst, path, theme, "shade_toggled_hover.xbm",
+ &theme->shade_toggled_hover_mask))
+ theme->shade_toggled_hover_mask =
+ RrPixmapMaskCopy(theme->shade_toggled_mask);
+
+ /* close button masks */
+ if (!read_mask(inst, path, theme, "close.xbm", &theme->close_mask)) {
+ guchar data[] = { 0x33, 0x3f, 0x1e, 0x1e, 0x3f, 0x33 };
+ theme->close_mask = RrPixmapMaskNew(inst, 6, 6, (gchar*)data);
+ }
+ if (!read_mask(inst, path, theme, "close_pressed.xbm",
+ &theme->close_pressed_mask))
+ theme->close_pressed_mask = RrPixmapMaskCopy(theme->close_mask);
+ if (!read_mask(inst, path, theme, "close_disabled.xbm",
+ &theme->close_disabled_mask))
+ theme->close_disabled_mask = RrPixmapMaskCopy(theme->close_mask);
+ if (!read_mask(inst, path, theme, "close_hover.xbm",
+ &theme->close_hover_mask))
+ theme->close_hover_mask = RrPixmapMaskCopy(theme->close_mask);
+
+ /* submenu bullet mask */
+ if (!read_mask(inst, path, theme, "bullet.xbm", &theme->menu_bullet_mask))
+ {
+ guchar data[] = { 0x01, 0x03, 0x07, 0x0f, 0x07, 0x03, 0x01 };
+ theme->menu_bullet_mask = RrPixmapMaskNew(inst, 4, 7, (gchar*)data);
+ }