Creates a new instance of a GtkAboutDialog. Remember that all of functions of its parent class GtkDialog can be used - for example run() .
Example 1. Simple GtkAboutDialog
<?php $dlg = new GtkAboutDialog(); $dlg->set_name('My first program'); $dlg->set_version('2.5.3'); $dlg->set_comments('These are my comments' . "\nWith a newline"); $dlg->set_copyright('Copyright (C) 1982-2005 myself'); $dlg->set_license("MyPL v2\nDo whatever you want to do.\nBut don't hurt anyone.");//Button $dlg->set_logo($dlg->render_icon(Gtk::STOCK_CDROM, Gtk::ICON_SIZE_LARGE_TOOLBAR)); $dlg->set_website('http://website.example.org'); $dlg->set_translator_credits("German version - My Friend\nFrench version - Another Friend"); $dlg->run(); ?> |