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



commit 6b03ba5cda65e5e214fd7377777fd2b8e5d7068e
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]