Method
Gtk Notebookinsert_page_menu
Declaration [src]
gint
gtk_notebook_insert_page_menu(
GtkNotebook*notebook,
GtkWidget*child,
GtkWidget*tab_label,
GtkWidget*menu_label,
gintposition
)
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:
GtkWidgetThe
GtkWidgetto use as the contents of the page.The data is owned by the caller of the method. tab_label-
Type:
GtkWidgetThe
GtkWidgetto be used as the label for the page, orNULLto use the default label, "page N".The argument can beNULL.The data is owned by the caller of the method. menu_label-
Type:
GtkWidgetThe widget to use as a label for the page-switch menu, if that is enabled. If
NULL, andtab_labelis aGtkLabelorNULL, then the menu label will be a newly created label with the same text astab_label; iftab_labelis not aGtkLabel,menu_labelmust be specified if the page-switch menu is to be used.The argument can beNULL.The data is owned by the caller of the method. position-
Type:
gintThe index (starting at 0) at which to insert the page, or -1 to append the page after all other pages.
Return value
Type: gint
The index (starting from 0) of the inserted page in the notebook.