mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
widget: Emit ::focus regardless of container-ness and can-focus
This commit is contained in:
parent
885bcd9fe4
commit
0d0cb6e192
@ -9486,12 +9486,10 @@ gtk_widget_child_focus (GtkWidget *widget,
|
||||
!gtk_widget_is_sensitive (widget))
|
||||
return FALSE;
|
||||
|
||||
/* child widgets must set CAN_FOCUS, containers
|
||||
* don't have to though.
|
||||
/* Emit ::focus in any case, even if can-focus is FALSE,
|
||||
* since any widget might have child widgets that will take
|
||||
* focus
|
||||
*/
|
||||
if (!GTK_IS_CONTAINER (widget) &&
|
||||
!gtk_widget_get_can_focus (widget))
|
||||
return FALSE;
|
||||
|
||||
g_signal_emit (widget,
|
||||
widget_signals[FOCUS],
|
||||
|
Loading…
Reference in New Issue
Block a user