mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-19 01:40:10 +00:00
widget: more details on gtk_widget_grab_focus docs
Tell that widget needs to be mapped and realized.
This commit is contained in:
parent
076ae4f5ad
commit
e14bf989eb
@ -5281,6 +5281,10 @@ _gtk_widget_grab_notify (GtkWidget *widget,
|
|||||||
*
|
*
|
||||||
* More precisely, it must have the %GTK_CAN_FOCUS flag set. Use
|
* More precisely, it must have the %GTK_CAN_FOCUS flag set. Use
|
||||||
* gtk_widget_set_can_focus() to modify that flag.
|
* gtk_widget_set_can_focus() to modify that flag.
|
||||||
|
*
|
||||||
|
* The widget also needs to be realized and mapped. This is indicated by the
|
||||||
|
* related signals. Grabbing the focus immediately after creating the widget
|
||||||
|
* will likely fail and cause critical warnings.
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
gtk_widget_grab_focus (GtkWidget *widget)
|
gtk_widget_grab_focus (GtkWidget *widget)
|
||||||
|
Loading…
Reference in New Issue
Block a user