GtkNotebook Constructor
   
    Creates a new GtkNotebook instance. After creating
    the notebook, you should fill its pages with other widgets using append_page()  and/or other similar methods.
   
   
    Because GtkNotebook is a decendant of
    GtkContainer, it may contain one or more children.
    The notebook's children will be displayed as a "page" with a tab. It is
    most useful when the notebook's children are themselves containers so that
    other items may be added.
   
   
    
Example 25. Creating a GtkNotebook
<?php
$notebook =& new GtkNotebook;
$pages = array('tab one', 'tab two', 'tab three');
foreach ($pages as $page) {
    $frame =& new GtkFrame($page);
    $frame->add(new GtkLabel('Sample text for ' . $page);
    $notebook->append_page($frame, new GtkLabel($page));
}
$notebook->show_all();
?>
 | 
 
    
   
    Tabs are automatically connected to the "clicked" signal. When a tab is clicked the
    "switch-page" signal is
    emitted which causes that tab's page to be brought to the foreground.