Minor tweaks

This commit is contained in:
Timothy Warren 2012-06-01 11:55:59 -04:00
parent 2eed1a7207
commit 4709afd878
2 changed files with 447 additions and 446 deletions

View File

@ -241,7 +241,9 @@ class Connection_Manager extends \wxFrame {
$types = $this->get_available_dbs(); $types = $this->get_available_dbs();
$type_id = $fields['Database Type']->GetSelection(); $type_id = $fields['Database Type']->GetSelection();
$type = $types[$type_id]; $type = (isset($types[$type_id]))
? $types[$type_id]
: "";
$params->name = $fields['Connection Name']->GetValue(); $params->name = $fields['Connection Name']->GetValue();
$params->type = $type; $params->type = $type;

View File

@ -51,8 +51,7 @@ class Main extends \wxFrame {
*/ */
public function __construct() public function __construct()
{ {
parent::__construct(NULL, NULL, PROGRAM_NAME, \wxDefaultPosition, new \wxSize(800, 600)); parent::__construct(NULL, NULL, PROGRAM_NAME, \wxDefaultPosition,new \wxSize(800, 480));
$this->_create_menu(); $this->_create_menu();
$sbar = $this->CreateStatusBar(2); $sbar = $this->CreateStatusBar(2);
@ -62,7 +61,6 @@ class Main extends \wxFrame {
// Layout the interface // Layout the interface
$this->_main_layout(); $this->_main_layout();
$this->SetThemeEnabled(TRUE);
$this->CenterOnScreen(wxBOTH); $this->CenterOnScreen(wxBOTH);
} }
@ -151,7 +149,7 @@ class Main extends \wxFrame {
/** /**
* Create the menu for the program * Create the menu for the program
* *
* @return GtkMenuBar * @return void
*/ */
private function _create_menu() private function _create_menu()
{ {
@ -186,4 +184,5 @@ class Main extends \wxFrame {
$this->SetMenuBar($menu_bar); $this->SetMenuBar($menu_bar);
} }
} }
// End of main.php // End of main.php