ComboBox: list: Make the popup_window modal

This seems to fix 2 bugs in list-mode ComboBoxes: failure to close the
popup upon clicking out of it, and failing to receive mouse input in the
popup of a CB contained within a modal parent window.

https://bugzilla.gnome.org/show_bug.cgi?id=738387
https://bugzilla.gnome.org/show_bug.cgi?id=776793
This commit is contained in:
Daniel Boles 2017-10-04 21:14:20 +01:00
parent b92234be08
commit 6c5b284615

View File

@ -1853,6 +1853,7 @@ gtk_combo_box_set_popup_widget (GtkComboBox *combo_box,
gtk_window_set_type_hint (GTK_WINDOW (priv->popup_window),
GDK_WINDOW_TYPE_HINT_COMBO);
gtk_window_set_modal (GTK_WINDOW (priv->popup_window), TRUE);
g_signal_connect (priv->popup_window, "show",
G_CALLBACK (gtk_combo_box_child_show),