Method

GtkToolbarget_item_index

since: 2.4

Declaration [src]

gint
gtk_toolbar_get_item_index (
  GtkToolbar* toolbar,
  GtkToolItem* item
)

Description [src]

Returns the position of item on the toolbar, starting from 0. It is an error if item is not a child of the toolbar.

Available since: 2.4

Parameters

item

Type: GtkToolItem

A GtkToolItem that is a child of toolbar.

The data is owned by the caller of the method.

Return value

Type: gint

The position of item on the toolbar.