[gimp] app: fix gimp_button_menu_position() to not add the y position twice



commit c02d28643fc132b7e8e2a8791c6fbfa94cf06b35
Author: Michael Natterer <mitch gimp org>
Date:   Thu Dec 10 12:20:03 2009 +0100

    app: fix gimp_button_menu_position() to not add the y position twice
    
    Fixes commit 4822ca0d6d9a38593995b0d2efc0b198acaf3f06 from ages ago,
    does nobody around here actually *use* master?

 app/widgets/gimpwidgets-utils.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/app/widgets/gimpwidgets-utils.c b/app/widgets/gimpwidgets-utils.c
index a43a030..ff4fd78 100644
--- a/app/widgets/gimpwidgets-utils.c
+++ b/app/widgets/gimpwidgets-utils.c
@@ -204,9 +204,6 @@ gimp_button_menu_position (GtkWidget       *button,
       break;
     }
 
-  if (! gtk_widget_get_has_window (button))
-    *y += button->allocation.y;
-
   *y += button->allocation.height / 2;
 
   if (*y + menu_requisition.height > rect.y + rect.height)



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