[gtk+/wip/attachment-rectangle] Revert "toolbar: use event window as attachment rectangle"



commit 60f7b719a0ba5b5feb504b29d2a6e15340fa38a6
Author: William Hua <william hua canonical com>
Date:   Thu Aug 27 11:20:23 2015 +0100

    Revert "toolbar: use event window as attachment rectangle"
    
    This reverts commit 10cd1f5c6d838031283c5e8cc4ddd6be5225d68e.

 gtk/gtktoolbar.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c
index d50bd3d..3fcf5fc 100644
--- a/gtk/gtktoolbar.c
+++ b/gtk/gtktoolbar.c
@@ -2639,8 +2639,6 @@ show_menu (GtkToolbar     *toolbar,
 {
   GtkToolbarPrivate *priv = toolbar->priv;
   GdkAttachmentOptions options;
-  GdkWindow *event_window;
-  GdkRectangle rect;
 
   rebuild_menu (toolbar);
 
@@ -2667,14 +2665,11 @@ show_menu (GtkToolbar     *toolbar,
 
   options |= GDK_ATTACHMENT_ATTACH_OPPOSITE_EDGE;
 
-  event_window = gtk_button_get_event_window (GTK_BUTTON (priv->arrow_button));
-  gdk_window_get_frame_extents (event_window, &rect);
-
   gtk_menu_popup_against (priv->menu,
                           event ? event->device : NULL,
                           NULL,
+                          priv->arrow_button,
                           NULL,
-                          &rect,
                           options,
                           NULL,
                           NULL,


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