Learn R Programming

RGtk2 (version 2.20.31)

gtkWidgetGrabFocus: gtkWidgetGrabFocus

Description

Causes widget to have the keyboard focus for the GtkWindow it's inside. widget must be a focusable widget, such as a GtkEntry; something like GtkFrame won't work.

Usage

gtkWidgetGrabFocus(object)

Arguments

object

Details

More precisely, it must have the GTK_CAN_FOCUS flag set. Use gtkWidgetSetCanFocus to modify that flag.