diff --git a/src/index.php b/src/index.php index 23d2965..8c4d708 100644 --- a/src/index.php +++ b/src/index.php @@ -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(); } diff --git a/src/windows/main.php b/src/windows/main.php index 6efde99..8d34d7f 100644 --- a/src/windows/main.php +++ b/src/windows/main.php @@ -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);