forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
9b5dc35650
commit
c09c61769c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user