[gnome-calendar/ui-rewrite] week-view: fix scrollbar size



commit d491d21afc6ca5be52453ad17303ae5f4962e644
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Nov 21 13:27:43 2014 -0200

    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 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/gcal-week-view.c b/src/gcal-week-view.c
index bdff20a..7a6245b 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 (


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]