[gtk+/gtk-3-22] ComboBox: list: Make the popup_window modal
- From: Daniel Boles <dboles src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gtk+/gtk-3-22] ComboBox: list: Make the popup_window modal
 
- Date: Wed,  4 Oct 2017 22:02:36 +0000 (UTC)
 
commit 6c5b2846156ab04fa409ac11353a2f9c71b2ae7c
Author: Daniel Boles <dboles src gnome org>
Date:   Wed Oct 4 21:14:20 2017 +0100
    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
 gtk/gtkcombobox.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index 92fc768..fab1679 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),
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]