Method
GtkNotebookinsert_page_menu
Declaration [src]
gint
gtk_notebook_insert_page_menu (
GtkNotebook* notebook,
GtkWidget* child,
GtkWidget* tab_label,
GtkWidget* menu_label,
gint position
)
Description [src]
Insert a page into notebook
at the given position, specifying
the widget to use as the label in the popup menu.
Parameters
child
-
Type:
GtkWidget
The
GtkWidget
to use as the contents of the page.The data is owned by the caller of the method. tab_label
-
Type:
GtkWidget
The
GtkWidget
to be used as the label for the page, orNULL
to use the default label, “page N”.The argument can be NULL
.The data is owned by the caller of the method. menu_label
-
Type:
GtkWidget
The widget to use as a label for the page-switch menu, if that is enabled. If
NULL
, andtab_label
is aGtkLabel
orNULL
, then the menu label will be a newly created label with the same text astab_label
; iftab_label
is not aGtkLabel
,menu_label
must be specified if the page-switch menu is to be used.The argument can be NULL
.The data is owned by the caller of the method. position
-
Type:
gint
The index (starting at 0) at which to insert the page, or -1 to append the page after all other pages.