[gtk+] Check if popup_window is mapped, not popup_widget



commit 81515f71833c248b446a3a62e351f956943d4b2d
Author: Kristian Rietveld <kris gtk org>
Date:   Fri Dec 17 13:15:27 2010 +0100

    Check if popup_window is mapped, not popup_widget
    
    Before hide_all was used on popup_window, which means popup_widget
    was also unmapped.  This is now no longer the case.  This fixes
    subsequent pop ups for appears-as-list == 1.

 gtk/gtkcombobox.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index 15c8df3..5de9a0f 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -2290,7 +2290,7 @@ gtk_combo_box_popup_for_device (GtkComboBox *combo_box,
   if (!gtk_widget_get_realized (GTK_WIDGET (combo_box)))
     return;
 
-  if (gtk_widget_get_mapped (priv->popup_widget))
+  if (gtk_widget_get_mapped (priv->popup_window))
     return;
 
   if (priv->grab_pointer && priv->grab_keyboard)



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