Method

GtkTextgrab_focus_without_selecting

Declaration [src]

gboolean
gtk_text_grab_focus_without_selecting (
  GtkText* self
)

Description [src]

Causes the text widget to have the keyboard focus.

It behaves like gtk_widget_grab_focus(), except that it does not select the contents of self.

You only want to call this on some special entries which the user usually doesn’t want to replace all text in, such as search-as-you-type entries.

Return value

Type: gboolean

True if focus is now inside self.