[gtk+/wip/dboles/combobox-cleanup: 6/9] combobox: Drop a workaround from the list mode age



commit 208d837ce472545bc062be68b74eba88bb2bead9
Author: Daniel Boles <dboles src gnome org>
Date:   Fri Jan 20 00:45:01 2017 +0000

    combobox: Drop a workaround from the list mode age
    
    Specifically, for handling a tear-off menu, which is no longer possible.

 gtk/gtkcombobox.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index 5031a7c..3e141fe 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -2097,14 +2097,9 @@ gtk_combo_box_menu_setup (GtkComboBox *combo_box)
 
   priv->popup_widget = menu;
 
-  /*
-   * Note that we connect to show/hide on the toplevel, not the
-   * menu itself, since the menu is not shown/hidden when it is
-   * popped up while torn-off.
-   */
-  g_signal_connect (GTK_MENU (menu)->priv->toplevel, "show",
+  g_signal_connect (menu, "show",
                     G_CALLBACK (gtk_combo_box_menu_show), combo_box);
-  g_signal_connect (GTK_MENU (menu)->priv->toplevel, "hide",
+  g_signal_connect (menu, "hide",
                     G_CALLBACK (gtk_combo_box_menu_hide), combo_box);
 
   gtk_menu_attach_to_widget (GTK_MENU (menu),


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