GtkNotebook::append_page

void append_page ( GtkWidget child , [ GtkWidget tab_label ]);

Adds a new page and tab to the back of the notebook. child is added as the "page" with tab_label as the tab. child can be any widget but it is most useful when child is descended from GtkContainer. The tab_label is usually a GtkLabel but may be any widget.

tab_label is optional. If it is not supplied the tab will be set to "page n" where n is the page number.

Ejemplo 26. Appending pages to a notebook

<?php
$pages = array(1, 2, 3);

$notebook =& new GtkNotebook;

foreach ($pages as $pageNumber) {
    $frame =& new GtkFrame('Page ' . $pageNumber);
    $label =& new GtkLabel('Tab '  . $pageNumber);
    $notebook->append_page($frame, $label);
}
?>

See also: prepend_page() , insert_page()