diff options
Diffstat (limited to 'source/widgets/scrollbar.c')
-rw-r--r-- | source/widgets/scrollbar.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/widgets/scrollbar.c b/source/widgets/scrollbar.c index d7cb0cf4..a4b859dc 100644 --- a/source/widgets/scrollbar.c +++ b/source/widgets/scrollbar.c @@ -35,6 +35,13 @@ static void scrollbar_draw ( widget *, cairo_t * ); static void scrollbar_free ( widget * ); static gboolean scrollbar_motion_notify ( widget *wid, xcb_motion_notify_event_t *xme ); + +static int scrollbar_get_desired_height ( widget *wid ) +{ + // Want height we are. + return wid->h; +} + scrollbar *scrollbar_create ( const char *name, int width ) { scrollbar *sb = g_malloc0 ( sizeof ( scrollbar ) ); @@ -47,6 +54,7 @@ scrollbar *scrollbar_create ( const char *name, int width ) sb->widget.draw = scrollbar_draw; sb->widget.free = scrollbar_free; sb->widget.motion_notify = scrollbar_motion_notify; + sb->widget.get_desired_height = scrollbar_get_desired_height; sb->length = 10; sb->pos = 0; |