From bb2554b0d4652b8929093deeecac57887c25751a Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Fri, 21 Nov 2014 13:27:43 -0200 Subject: [PATCH] week-view: fix scrollbar size Calendar should respect scrollbar natural size. Lapo pointed out that this is pretty inconsistent and should be fixed. Fixes bug #737854. --- src/gcal-week-view.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/gcal-week-view.c b/src/gcal-week-view.c index bdff20aa..7a6245b8 100644 --- a/src/gcal-week-view.c +++ b/src/gcal-week-view.c @@ -904,11 +904,10 @@ gcal_week_view_size_allocate (GtkWidget *widget, if (scroll_needed) { - /* FIXME: change those values for something not hardcoded */ - scroll_allocation.x = allocation->width - 10; - scroll_allocation.y = 7 + start_grid_y + 2; - scroll_allocation.width = 8; - scroll_allocation.height = view_height - 7 - 2; + scroll_allocation.x = allocation->width - natural; + scroll_allocation.y = start_grid_y; + scroll_allocation.width = natural; + scroll_allocation.height = view_height; gtk_widget_size_allocate (priv->vscrollbar, &scroll_allocation); gtk_adjustment_set_page_size (