Implemented resizable horizontal pane in main window
This commit is contained in:
parent
f9b4e5128a
commit
73b846bf0f
@ -57,7 +57,6 @@ register_shutdown_function('log_fatal');
|
|||||||
if ( ! class_exists('gtk'))
|
if ( ! class_exists('gtk'))
|
||||||
{
|
{
|
||||||
trigger_error("PHP-gtk not found. Please load the php-gtk2 module in your php.ini", E_USER_ERROR);
|
trigger_error("PHP-gtk not found. Please load the php-gtk2 module in your php.ini", E_USER_ERROR);
|
||||||
|
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,17 +96,18 @@ class Main extends GtkWindow {
|
|||||||
// Main Vbox that everything is contained in
|
// Main Vbox that everything is contained in
|
||||||
$main_vbox = new GTKVBox();
|
$main_vbox = new GTKVBox();
|
||||||
|
|
||||||
// Main Hbox for columns
|
// Main Hpaned for columns
|
||||||
$main_hbox = new GTKHBox();
|
$hpane = new GTKHPaned();
|
||||||
|
|
||||||
// Add the menubar
|
// Add the menubar
|
||||||
$main_vbox->pack_start($this->_create_menu(), FALSE, FALSE);
|
$main_vbox->pack_start($this->_create_menu(), FALSE, FALSE);
|
||||||
|
|
||||||
// Add the main interface area hbox
|
// Add the main interface area hbox
|
||||||
$main_vbox->pack_start($main_hbox);
|
$main_vbox->pack_start($hpane);
|
||||||
|
|
||||||
// Add the left column to the hbox
|
// Add the left column to the hpane
|
||||||
$main_hbox->pack_start($this->_connection_sidebar(), FALSE);
|
$hpane->pack1($this->_connection_sidebar(), FALSE);
|
||||||
|
$hpane->pack2(new GtkVBox());
|
||||||
|
|
||||||
// Add the Vbox, and show the window
|
// Add the Vbox, and show the window
|
||||||
$this->add($main_vbox);
|
$this->add($main_vbox);
|
||||||
|
Loading…
Reference in New Issue
Block a user