insert_page


Description:

public int insert_page (Widget page, Widget tab_widget, string label, string tooltips, string stock_id, Pixbuf pixbuf_icon, int position)

Adds a page to a Switcher.

A button is created in the switcher, with its icon taken preferentially from the stock_id parameter. If this parameter is null, then the pixbuf_icon parameter is used. Failing that, the NEW stock icon is used. The text label for the button is specified using the label parameter. If it is null then a default incrementally numbered label is used instead.

Parameters:

this

The switcher to which a page will be added

page

The page to add to the switcher

tab_widget

The to add to the switcher

label

The label text for the button

tooltips

The tooltip for the button

stock_id

The stock ID for the button icon

pixbuf_icon

The pixbuf to use for the button icon

position

The position at which to create the page

Returns:

The index (starting from 0) of the appended page in the notebook, or -1 if function fails