[gtk+/touch-selection-improvements: 1/17] window: Let popovers use the shadow area



commit a167753741188f0afd6a1a18a854920d1c9adac4
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Nov 14 11:52:07 2014 +0100

    window: Let popovers use the shadow area

 gtk/gtkwindow.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 8394fc4..9d9e73a 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -6248,7 +6248,7 @@ popover_get_rect (GtkWindowPopover      *popover,
         }
       else
         rect->y = CLAMP (popover->rect.y + (popover->rect.height / 2) -
-                         (req.height / 2), win_alloc.y, win_alloc.y + win_alloc.height - req.height);
+                         (req.height / 2), 0, win_alloc.y + win_alloc.height + win_border.top - req.height);
 
       if ((popover->pos == GTK_POS_LEFT) ==
           (gtk_widget_get_direction (popover->widget) == GTK_TEXT_DIR_LTR))
@@ -6280,7 +6280,7 @@ popover_get_rect (GtkWindowPopover      *popover,
         }
       else
         rect->x = CLAMP (popover->rect.x + (popover->rect.width / 2) -
-                         (req.width / 2), win_alloc.x, win_alloc.x + win_alloc.width - req.width);
+                         (req.width / 2), 0, win_alloc.x + win_alloc.width + win_border.right - req.width);
 
       if (popover->pos == GTK_POS_TOP)
         {


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