[gtk/popover-initial-focus: 2/2] modelbutton: Catch focus-in more carefully
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/popover-initial-focus: 2/2] modelbutton: Catch focus-in more carefully
- Date: Fri, 10 Apr 2020 02:24:37 +0000 (UTC)
commit c09c61769c9d0050c39f8607d21c2f8911b3d332
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Apr 9 22:22:28 2020 -0400
modelbutton: Catch focus-in more carefully
We need to unset the propagation limit on the focus
controller, else we miss the focus-in when the focus
enters the popover upon initial popup, when it comes
from the parent button.
gtk/gtkmodelbutton.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtkmodelbutton.c b/gtk/gtkmodelbutton.c
index 4cc292c980..90249bfedb 100644
--- a/gtk/gtkmodelbutton.c
+++ b/gtk/gtkmodelbutton.c
@@ -1387,6 +1387,7 @@ gtk_model_button_init (GtkModelButton *self)
gtk_widget_add_controller (GTK_WIDGET (self), controller);
controller = gtk_event_controller_focus_new ();
+ gtk_event_controller_set_propagation_limit (controller, GTK_LIMIT_NONE);
g_signal_connect (controller, "enter", G_CALLBACK (focus_in_cb), NULL);
gtk_widget_add_controller (GTK_WIDGET (self), controller);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]