Package: gtk

Function gtk:notebook-prepend-page-menu

Lambda List

gtk:notebook-prepend-page-menu (notebook child tab menu)

Arguments

notebook -- a gtk:notebook widget
child -- a gtk:widget child to use as the content of the page
tab -- a gtk:widget object to use as the label for the page, or nil to use the default label, 'page N'
menu -- a gtk:widget object to use as a label for the page-switch menu, if that is enabled

Return Value

An integer with the index starting from 0 of the prepended page in the notebook, or -1 if the function fails.

Details

Prepends a page to the notebook, specifying the widget to use as the label in the popup menu.

If the menu optional argument is nil, and tab is a gtk:label widget or nil, then the menu label will be a newly created label with the same text as tab. If the tab argument is not a gtk:label widget, the menu argument must be specified if the page-switch menu is to be used.
 

See also

#2023-3-21