GtkNotebook::get_current_page
int
      get_current_page
     (void); 
    
     Returns the index of the currently selected page.
    
    
     
Example 28. Set the current page to 0 if not already
<?php
$notebook =& new GtkNotebook;
for ($i = 0; $i < 10; ++$i) {
    $notebook->append_page(new GtkFrame('Page ' . $i), new GtkLabel($i));
}
if ($notebook->get_current_page() != 0) {
    $notebook->set_page(0);
}
?>
 |