Package: gtk

Function gtk-notebook-remove-page

Lambda List

gtk-notebook-remove-page (notebook page-or-number)

Arguments

notebook -- a gtk-notebook widget
page-or-number -- an integer with the index of a notebook page, starting from 0, if -1, the last page will be removed, or the gtk-widget child page

Details

Removes a page from the notebook given the page widget or its index in the notebook.

Note

In the Lisp implementation the argument can be an integer for the index or the page widget. The index of the page widget is got with the function gtk-notebook-page-num and passed to the C function.

Example

(defvar notebook (make-instance 'gtk-notebook))
=> NOTEBOOK
(defvar page (make-instance 'gtk-frame))
=> PAGE
(gtk-notebook-append-page notebook page nil)
=> 0
(gtk-notebook-remove-page notebook page)
(gtk-notebook-append-page notebook page nil)
=> 0
(gtk-notebook-remove-page notebook 0)    
 

See also

2021-12-17