[gnome-builder] tree: adjust for Adwaita theme changes



commit 50e24225658ba7ba20b6b515a0868acb7d6f8aa1
Author: Christian Hergert <chergert redhat com>
Date:   Tue May 3 16:40:21 2016 +0300

    tree: adjust for Adwaita theme changes
    
    We want the selection bar to line up, not the top coordinates of the
    window. So adjust based on the top padding of the menu.
    
    If someone would like to make this dynamically track padding from the
    menu, a patch to do so would be reviewed.

 libide/ide-tree.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-tree.c b/libide/ide-tree.c
index 1718a02..f50da50 100644
--- a/libide/ide-tree.c
+++ b/libide/ide-tree.c
@@ -294,6 +294,7 @@ ide_tree_popup (IdeTree        *self,
       gdk_window_get_root_coords (gtk_widget_get_window (GTK_WIDGET (self)),
                                   target_x, target_y, &loc.x, &loc.y);
       loc.x -= 12;
+      loc.y -= 3;
     }
 
   gtk_container_foreach (GTK_CONTAINER (menu_widget),


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