Method

GtkToolbarget_drop_index

since: 2.4

Declaration [src]

gint
gtk_toolbar_get_drop_index (
  GtkToolbar* toolbar,
  gint x,
  gint y
)

Description [src]

Returns the position corresponding to the indicated point on toolbar. This is useful when dragging items to the toolbar: this function returns the position a new item should be inserted.

x and y are in toolbar coordinates.

Available since: 2.4

Parameters

x

Type: gint

X coordinate of a point on the toolbar.

y

Type: gint

Y coordinate of a point on the toolbar.

Return value

Type: gint

The position corresponding to the point (x, y) on the toolbar.