diff options
author | Raymond Penners <pennersr@src.gnome.org> | 2003-11-01 15:28:25 +0000 |
---|---|---|
committer | Raymond Penners <pennersr@src.gnome.org> | 2003-11-01 15:28:25 +0000 |
commit | 73ab722107c9f3cfec8c3e23532f9e62129e4e90 (patch) | |
tree | 2e915e8f8fcc9b872594fffae2f9644e6161f367 /modules | |
parent | 58a391009a7b8b6c5dfda37036c20909106c58ad (diff) | |
download | gdk-pixbuf-73ab722107c9f3cfec8c3e23532f9e62129e4e90.tar.gz |
scrollbar grippers
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/engines/ms-windows/ChangeLog.old | 5 | ||||
-rwxr-xr-x | modules/engines/ms-windows/xp_theme.c | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/modules/engines/ms-windows/ChangeLog.old b/modules/engines/ms-windows/ChangeLog.old index c972560da..334bf1849 100755 --- a/modules/engines/ms-windows/ChangeLog.old +++ b/modules/engines/ms-windows/ChangeLog.old @@ -1,3 +1,8 @@ +2003-11-01 Raymond Penners <raymond@dotsphinx.com>
+
+ * src/xp_theme.c: Do not display XP scrollbar grippers on tiny
+ scrollbars.
+
2003-10-23 Raymond Penners <raymond@dotsphinx.com>
* === Released 0.5.1 ===
diff --git a/modules/engines/ms-windows/xp_theme.c b/modules/engines/ms-windows/xp_theme.c index 8a0f2ef98..e2e002d5e 100755 --- a/modules/engines/ms-windows/xp_theme.c +++ b/modules/engines/ms-windows/xp_theme.c @@ -666,6 +666,15 @@ xp_theme_draw (GdkWindow *win, XpThemeElement element, GtkStyle *style, GdkDrawable *drawable; int part_state; + /* Do not display grippers on tiny scroll bars, the limit imposed + is rather arbitrary, perhaps we can fetch the gripper geometry + from somewhere and use that... */ + if ((element == XP_THEME_ELEMENT_SCROLLBAR_GRIPPER_H && width < 16) + || (element == XP_THEME_ELEMENT_SCROLLBAR_GRIPPER_V && height < 16)) + { + return TRUE; + } + if (! xp_theme_is_drawable (element)) return FALSE; |