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



commit 031f398275c8ee0aa4c07b0633417130df64982d
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 6b91c87..6623003 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -2092,14 +2092,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]