[gnome-panel] clock: fix calendar window position with vertical panel



commit d7192e2407aeee3cce3f173345f4c276f4562a7a
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Apr 26 13:33:42 2021 +0300

    clock: fix calendar window position with vertical panel
    
    Introduced in 5ac3f07df9abe70113a3e072ac69d2d837c561a9.

 modules/clock/clock-applet.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/clock/clock-applet.c b/modules/clock/clock-applet.c
index d6f0da487..6afe97cf0 100644
--- a/modules/clock/clock-applet.c
+++ b/modules/clock/clock-applet.c
@@ -388,7 +388,7 @@ position_calendar_popup (ClockApplet *cd)
         * I expected.
         */
        switch (gp_applet_get_position (GP_APPLET (cd))) {
-       case GTK_POS_RIGHT:
+       case GTK_POS_LEFT:
                x += button_w;
                if ((y + h) > monitor.y + monitor.height)
                        y -= (y + h) - (monitor.y + monitor.height);
@@ -399,7 +399,7 @@ position_calendar_popup (ClockApplet *cd)
                        gravity = GDK_GRAVITY_NORTH_WEST;
 
                break;
-       case GTK_POS_LEFT:
+       case GTK_POS_RIGHT:
                x -= w;
                if ((y + h) > monitor.y + monitor.height)
                        y -= (y + h) - (monitor.y + monitor.height);


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