Added About Dialog

This commit is contained in:
Timothy Warren 2012-01-27 21:19:39 -05:00
parent eb6edfa6c3
commit 665ffe8c21
2 changed files with 14 additions and 2 deletions

View File

@ -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);

View File

@ -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();
}
/**