From 665ffe8c21e216ed80f6c102a9b9f62894d21fcf Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Fri, 27 Jan 2012 21:19:39 -0500 Subject: [PATCH] Added About Dialog --- src/index.php | 5 ++++- src/windows/main.php | 11 ++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/index.php b/src/index.php index 4e6c23d..ddb71c9 100644 --- a/src/index.php +++ b/src/index.php @@ -25,7 +25,10 @@ if ( ! class_exists('gtk')) die("Please load the php-gtk2 module in your php.ini\r\n"); } -// Wrapper workaround for PHP < 5.4 +// Set the stupid timezone so PHP shuts up. +date_default_timezone_set('GMT'); + +// Bulk loading wrapper workaround for PHP < 5.4 function do_include($path) { require_once($path); diff --git a/src/windows/main.php b/src/windows/main.php index 07d5944..459a72f 100644 --- a/src/windows/main.php +++ b/src/windows/main.php @@ -87,7 +87,7 @@ class Main extends GtkWindow { //Set up the quit item $quit = new GtkImageMenuItem(GTK::STOCK_QUIT); $quit->connect_simple('activate', array($this, 'quit')); - $file_menu->append($quit); + $file_menu->append($quit); // Add the top level menu to the menubar $menu_bar->append($top_file_menu); @@ -113,7 +113,16 @@ class Main extends GtkWindow { */ function about() { + $dlg = new GtkAboutDialog(); + $dlg->set_name('OpenSQLManager'); + $dlg->set_version('0.0.1pre'); + + $dlg->set_copyright("Copyright (c) ".date('Y')." Timothy J. Warren"); + + $dlg->set_website('https://github.com/aviat4ion/OpenSQLManager'); + + $dlg->run(); } /**