forked from AuroraMiddleware/gtk
scrollbar grippers
This commit is contained in:
parent
58a391009a
commit
73ab722107
@ -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 ===
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user