Method

Gtk.Notebook.prepend_page

Declaration [src]

int
gtk_notebook_prepend_page (
  GtkNotebook* notebook,
  GtkWidget* child,
  GtkWidget* tab_label
)

Description [src]

Prepends a page to notebook.

Parameters

child GtkWidget
 

the GtkWidget to use as the contents of the page

 Ownership is not transferred to the callee
tab_label GtkWidget
 

the GtkWidget to be used as the label for the page, or NULL to use the default label, “page N”

 Can be NULL
 Ownership is not transferred to the callee

Return value

Returns: int

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