set_tab_pos(Gtk::POS_BOTTOM); $this->add_tab('Tables'); } // -------------------------------------------------------------------------- /** * Add a new tab with the provided label * * @param string $label * @param GObject $widget * @return void */ public function add_tab($label, $widget = NULL) { if (is_null($widget)) { $widget = new Data_Grid(); } $this->append_page($widget, new GtkLabel($label)); } // -------------------------------------------------------------------------- /** * Creates a new instance of this class, and destroys the existing * instance * * @return DB_tabs */ public function reset() { unset(self::$instance); return self::get_instance(); } } // End of db_tabs.php