month-view: fix date calc on rtl languages

This commit is contained in:
Georges Basile Stavracas Neto
2016-02-16 11:27:21 +09:00
parent 3f4d11f68e
commit 004af2893f
+4
View File
@@ -1175,6 +1175,10 @@ gcal_month_view_size_allocate (GtkWidget *widget,
gint column = cell_idx % 7;
gint day = cell_idx - priv->days_delay + 1;
/* Day number is calculated differently on RTL languages */
if (priv->k)
day = 7 * row + MIRROR (day % 7, 0, 7) - length;
if (i != 0)
{
child_widget = gcal_event_widget_clone (GCAL_EVENT_WIDGET (child_widget));