[gtk+] combobox: remove unneeded check



commit ebc7b59b448a0bd6229b794dc81959b219259a7d
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Dec 21 17:47:44 2015 -0800

    combobox: remove unneeded check
    
    The combobox always has a window.

 gtk/gtkcombobox.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index fd751a2..487e9b7 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -1930,13 +1930,6 @@ gtk_combo_box_list_position (GtkComboBox *combo_box,
   *x = *y = 0;
 
   gtk_widget_get_allocation (widget, &allocation);
-
-  if (!gtk_widget_get_has_window (widget))
-    {
-      *x += allocation.x;
-      *y += allocation.y;
-    }
-
   window = gtk_widget_get_window (widget);
 
   gdk_window_get_root_coords (gtk_widget_get_window (widget),


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