From 7ec35088b18a4974c1daaad241b148508e80f231 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Fri, 3 Feb 2012 16:17:19 -0500 Subject: [PATCH] Misc changes Position db add window in the center of the screen, minor changes to bootstrap file --- src/index.php | 4 ++-- src/windows/add_db.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.php b/src/index.php index 8c4d708..9a4e85e 100644 --- a/src/index.php +++ b/src/index.php @@ -21,7 +21,7 @@ // -------------------------------------------------------------------------- // Suppress errors that php-gtk puts out -error_reporting(-1 & ~(E_STRICT | E_DEPRECATED)); +error_reporting(-1 & ~(E_STRICT)); // Set the stupid timezone so PHP shuts up. date_default_timezone_set('GMT'); @@ -56,7 +56,7 @@ register_shutdown_function('log_fatal'); // Make sure php-gtk works 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 extension in your php.ini", E_USER_ERROR); die(); } diff --git a/src/windows/add_db.php b/src/windows/add_db.php index 4221efc..80d7153 100644 --- a/src/windows/add_db.php +++ b/src/windows/add_db.php @@ -25,6 +25,7 @@ class Add_DB extends GtkWindow { $this->settings = new Settings(); + $this->set_position(Gtk::WIN_POS_CENTER); $this->set_title("Add Database Connection"); // Add the Vbox, and show the window