[gnome-calendar/wip/gbsneto/dnd] year-view: fix hover & dnd drawing on RTL locales



commit 1c90791d3b370f1410670449670ce605d705c34c
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sat May 21 19:06:15 2016 -0300

    year-view: fix hover & dnd drawing on RTL locales

 src/gcal-year-view.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-year-view.c b/src/gcal-year-view.c
index 79911f1..f2e3ccf 100644
--- a/src/gcal-year-view.c
+++ b/src/gcal-year-view.c
@@ -737,7 +737,7 @@ draw_month_grid (GcalYearView *year_view,
         {
           gint hover_x, hover_y;
 
-          hover_x = box_side * column + x + sw * box_padding_start / 2.0 - year_view->k * box_side - 2.0;
+          hover_x = box_side * column + x + box_padding_start / 2.0 - year_view->k * box_side - 2.0;
           hover_y = box_side * (row + 1) + y + box_padding_top - 1.0;
 
           gtk_style_context_set_state (context, state_flags | GTK_STATE_FLAG_PRELIGHT);
@@ -758,7 +758,7 @@ draw_month_grid (GcalYearView *year_view,
         {
           gint dnd_x, dnd_y;
 
-          dnd_x = box_side * column + x + sw * box_padding_start / 2.0 - year_view->k * box_side - 2.0;
+          dnd_x = box_side * column + x + box_padding_start / 2.0 - year_view->k * box_side - 2.0;
           dnd_y = box_side * (row + 1) + y + box_padding_top - 1.0;
 
           gtk_style_context_save (context);


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