GNOME Bugzilla – Bug 788577
Global -GtkComboBox-appears-as-list breaks opening menu-mode CBs by keyboard
Last modified: 2017-10-06 00:41:26 UTC
Setting -appears-as-list, but then having a ComboBox that is forced into grid (menu) mode because its :wrap-width > 0, breaks opening that CB with keyboard Not setting the global -appears-as-list makes the button presses work as normal.
Created attachment 361009 [details] [review] ComboBox: Don’t let modes disconnect each other …from priv->button. My refactor to g_signal_disconnect_by_data() included this widget, when I shouldn’t have as both modes use it. This e.g. broke opening a CB by keyboard that was currently in menu mode, if it had been in list mode initially (e.g. due to the theme). Fix by moving to disconnect_by_func() and only removing in each mode’s destroy() method the signals that it set on the button in its setup().
Attachment 361009 [details] pushed as 7fc09f1 - ComboBox: Don’t let modes disconnect each other