[gnome-calendar] month-view: fix popover placement on RTL locales
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] month-view: fix popover placement on RTL locales
- Date: Sat, 20 Dec 2014 14:13:47 +0000 (UTC)
commit ca2072695930bf43773e3d3e33aaaa3e9c3600ca
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Fri Dec 19 14:30:46 2014 -0500
month-view: fix popover placement on RTL locales
src/gcal-month-view.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index b47cde7..376c32d 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -439,17 +439,17 @@ rebuild_popover_for_cell (GcalMonthView *view)
if (priv->pressed_overflow_indicator % 7 < 3)
{
rect.x = cell_width * ((priv->pressed_overflow_indicator % 7) + 1.0);
- gtk_popover_set_position (GTK_POPOVER (priv->overflow_popover), GTK_POS_RIGHT);
+ gtk_popover_set_position (GTK_POPOVER (priv->overflow_popover), priv->k == 0 ? GTK_POS_RIGHT :
GTK_POS_LEFT);
}
else if (priv->pressed_overflow_indicator % 7 > 3)
{
rect.x = cell_width * ((priv->pressed_overflow_indicator % 7));
- gtk_popover_set_position (GTK_POPOVER (priv->overflow_popover), GTK_POS_LEFT);
+ gtk_popover_set_position (GTK_POPOVER (priv->overflow_popover), priv->k == 0 ? GTK_POS_LEFT :
GTK_POS_RIGHT);
}
else
{
rect.x = cell_width * ((priv->pressed_overflow_indicator % 7) + 1.0 - priv->k);
- gtk_popover_set_position (GTK_POPOVER (priv->overflow_popover), priv->k == 0 ? GTK_POS_RIGHT :
GTK_POS_LEFT);
+ gtk_popover_set_position (GTK_POPOVER (priv->overflow_popover), GTK_POS_RIGHT);
}
gtk_popover_set_pointing_to (GTK_POPOVER (priv->overflow_popover), &rect);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]