summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2008-02-06 01:32:12 -0500
committerDana Jansens <danakj@orodu.net>2008-02-06 01:32:12 -0500
commitbc13099405a7aecc0eb8b6688b2b3a384f4dfcac (patch)
treec2f589a205929052c62e392079f70cdb095caeeb /render
parent92bbd733fa1a8fbc5eebf207932bf26be0251894 (diff)
show a small arrow on the top/bottom of the alttab list box when there are more windows that are not visible in that direction
Diffstat (limited to 'render')
-rw-r--r--render/theme.c12
-rw-r--r--render/theme.h3
2 files changed, 15 insertions, 0 deletions
diff --git a/render/theme.c b/render/theme.c
index d644a92f..6d87cafb 100644
--- a/render/theme.c
+++ b/render/theme.c
@@ -538,6 +538,16 @@ RrTheme* RrThemeNew(const RrInstance *inst, const gchar *name,
theme->menu_bullet_mask = RrPixmapMaskNew(inst, 4, 7, (gchar*)data);
}
+ /* up and down arrows */
+ {
+ guchar data[] = { 0xfe, 0x00, 0x7c, 0x00, 0x38, 0x00, 0x10, 0x00 };
+ theme->down_arrow_mask = RrPixmapMaskNew(inst, 9, 4, (gchar*)data);
+ }
+ {
+ guchar data[] = { 0x10, 0x00, 0x38, 0x00, 0x7c, 0x00, 0xfe, 0x00 };
+ theme->up_arrow_mask = RrPixmapMaskNew(inst, 9, 4, (gchar*)data);
+ }
+
/* setup the default window icon */
theme->def_win_icon = read_c_image(OB_DEFAULT_ICON_WIDTH,
OB_DEFAULT_ICON_HEIGHT,
@@ -1450,6 +1460,8 @@ void RrThemeFree(RrTheme *theme)
RrPixmapMaskFree(theme->close_hover_mask);
RrPixmapMaskFree(theme->close_pressed_mask);
RrPixmapMaskFree(theme->menu_bullet_mask);
+ RrPixmapMaskFree(theme->down_arrow_mask);
+ RrPixmapMaskFree(theme->up_arrow_mask);
RrFontClose(theme->win_font_focused);
RrFontClose(theme->win_font_unfocused);
diff --git a/render/theme.h b/render/theme.h
index 2c35284f..9f51fabd 100644
--- a/render/theme.h
+++ b/render/theme.h
@@ -144,6 +144,9 @@ struct _RrTheme {
RrPixmapMask *menu_toggle_mask; /* menu boolean */
#endif
+ RrPixmapMask *down_arrow_mask;
+ RrPixmapMask *up_arrow_mask;
+
/* global appearances */
RrAppearance *a_disabled_focused_max;
RrAppearance *a_disabled_unfocused_max;