API Version: 3.0
Library Version: 3.24
Generated by gi-docgen 2025.4
GtkWidget* gtk_window_get_focus ( GtkWindow* window )
Retrieves the current focused widget within the window. Note that this is the widget that would have the focus if the toplevel window focused; if the toplevel window is not focused then gtk_widget_has_focus (widget) will not be TRUE for the widget.
gtk_widget_has_focus (widget)
TRUE
Type: GtkWidget
GtkWidget
The currently focused widget, or NULL if there is none.
NULL