Implemented resizable horizontal pane in main window

This commit is contained in:
Timothy Warren 2012-02-02 19:40:21 -05:00
parent f9b4e5128a
commit 73b846bf0f
2 changed files with 6 additions and 6 deletions

View File

@ -57,7 +57,6 @@ register_shutdown_function('log_fatal');
if ( ! class_exists('gtk'))
{
trigger_error("PHP-gtk not found. Please load the php-gtk2 module in your php.ini", E_USER_ERROR);
die();
}

View File

@ -96,17 +96,18 @@ class Main extends GtkWindow {
// Main Vbox that everything is contained in
$main_vbox = new GTKVBox();
// Main Hbox for columns
$main_hbox = new GTKHBox();
// Main Hpaned for columns
$hpane = new GTKHPaned();
// Add the menubar
$main_vbox->pack_start($this->_create_menu(), FALSE, FALSE);
// Add the main interface area hbox
$main_vbox->pack_start($main_hbox);
$main_vbox->pack_start($hpane);
// Add the left column to the hbox
$main_hbox->pack_start($this->_connection_sidebar(), FALSE);
// Add the left column to the hpane
$hpane->pack1($this->_connection_sidebar(), FALSE);
$hpane->pack2(new GtkVBox());
// Add the Vbox, and show the window
$this->add($main_vbox);