summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Boles <dboles@src.gnome.org>2017-10-04 21:14:20 +0100
committerDaniel Boles <dboles@src.gnome.org>2017-10-04 21:53:53 +0100
commit6c5b2846156ab04fa409ac11353a2f9c71b2ae7c (patch)
tree1215b3d3c161ea1548c2d95dd4c26d12abcac691
parentb92234be08d1575aeb6957be656a09f1e4f624c2 (diff)
downloadgtk+-6c5b2846156ab04fa409ac11353a2f9c71b2ae7c.tar.gz
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
-rw-r--r--gtk/gtkcombobox.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index 92fc768664..fab1679864 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -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),