summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2016-05-21 19:06:15 -0300
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2016-05-21 19:06:15 -0300
commit1c90791d3b370f1410670449670ce605d705c34c (patch)
treebbe9a52cc051aa2b75f16b213ef53921db3fb8e2
parent5960a45d005200554b5e86ff293450e2e07099e2 (diff)
downloadgnome-calendar-wip/gbsneto/dnd.tar.gz
year-view: fix hover & dnd drawing on RTL localeswip/gbsneto/dnd
-rw-r--r--src/gcal-year-view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gcal-year-view.c b/src/gcal-year-view.c
index 79911f18..f2e3ccfa 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);