[gtk+/wip/cosimoc/combobox-gadget: 5/6] combobox: remove unneeded check



commit b2f36a2a5338cdcf8db37b6e30e3ce24cef6e802
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 03c5836..e4d1b0d 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]