Method

GtkEntryset_cursor_hadjustment

since: 2.12

Declaration [src]

void
gtk_entry_set_cursor_hadjustment (
  GtkEntry* entry,
  GtkAdjustment* adjustment
)

Description [src]

Hooks up an adjustment to the cursor position in an entry, so that when the cursor is moved, the adjustment is scrolled to show that position. See gtk_scrolled_window_get_hadjustment() for a typical way of obtaining the adjustment.

The adjustment has to be in pixel units and in the same coordinate system as the entry.

Available since: 2.12

Parameters

adjustment

Type: GtkAdjustment

An adjustment which should be adjusted when the cursor is moved, or NULL.

The argument can be NULL.
The data is owned by the caller of the function.