« Stopping the “PHP Fatal error: Internal object missing in” error in PHP-GTK2 | Home | Using UTF-8 in PHP-GTK2 »
Changing the application name of a GtkAboutDialog in PHP-GTK2
By admin | August 17, 2008
For those of you who have never heard of it, a GtkAboutDialog is a convience GtkDialog to display application credits. However, the documentation (archive at 2008-08-17) for it does not specify a way to change the application’s name, and as a result ends up using the script name for the application, which is very ugly and unprofessional.
To change the application name, use the undocumented function GtkAboutDialog::set_name() to change the name. Here is an example:
<?php
$dialog = new GtkAboutDialog();
$copy = "(C) Copyright 2008 Example.";
$license = "GNU GPL Text would go here";
$web = "http://www.example.com/";
$version = "Version 1.0";
$prog = "YourExampleProg";
$desc = "A sample program to demonstrate the use of GtkAboutDialog";
$dialog->set_copyright($copy);
$dialog->set_license($license);
$dialog->set_website($web);
$dialog->set_version($version);
$dialog->set_name($prog); // Use this line to set app name
$dialog->set_comments($desc);
$dialog->run();
$dialog->hide();
?>
If you found this article helpful or useful, please help Compdigitec spread the word or leave a comment. Don’t forget to subscribe to Compdigitec Labs for more interesting articles!
If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!
Topics: PHP | 22 Comments »
February 5th, 2022 at 19:38
… [Trackback]
[…] Find More to that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]
July 2nd, 2022 at 03:53
… [Trackback]
[…] Read More on on that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]
July 30th, 2022 at 16:50
… [Trackback]
[…] Info on that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]
September 8th, 2022 at 09:49
… [Trackback]
[…] Read More Information here on that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]
September 18th, 2022 at 05:38
… [Trackback]
[…] Find More to that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]
October 19th, 2022 at 14:17
… [Trackback]
[…] Here you will find 96607 additional Info on that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]
November 29th, 2022 at 01:11
… [Trackback]
[…] There you will find 37684 additional Info to that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]
December 6th, 2022 at 18:36
… [Trackback]
[…] Find More on that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]
December 8th, 2022 at 09:32
… [Trackback]
[…] Read More Info here to that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]
December 19th, 2022 at 09:24
… [Trackback]
[…] Read More here on that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]
December 23rd, 2022 at 06:43
… [Trackback]
[…] Read More on to that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]
January 5th, 2023 at 08:28
… [Trackback]
[…] Here you can find 96072 more Information on that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]
January 7th, 2023 at 00:59
… [Trackback]
[…] Information on that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]
January 20th, 2023 at 05:17
… [Trackback]
[…] Find More on on that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]
January 23rd, 2023 at 08:41
Pg slot แตกง่าย เกมแจ็คพอต PG SLOT เป็นอีกหนึ่งต้นแบบเกมทำเงินยอดนิยมเยอะที่สุดในปี 2021 นี้ มีเรื่องราวชักชวนติดตาม และก็มีภาพกราฟิกที่ชัดเจนงดงามสูงที่สุดอีกด้วยเล่นเลย
January 23rd, 2023 at 08:54
pgslot เป็นหนึ่งในค่ายเกมสล็อตออนไลน์มีเกมให้เลือกเล่นมากกว่า 100 เกมส์ โดยแต่ละเกมนั้นมีต้นแบบการเล่นที่ผิดแผกแตกต่างออกไป พีจีสล็อต มีความทันสมัย ออกแบบภาพออกมาในตัวอย่าง 3 มิติ
February 6th, 2023 at 21:45
… [Trackback]
[…] Information on that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]
February 11th, 2023 at 03:05
… [Trackback]
[…] Information to that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]
March 6th, 2023 at 05:37
… [Trackback]
[…] Read More on to that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]
March 6th, 2023 at 11:31
… [Trackback]
[…] Information on that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]
March 16th, 2023 at 10:26
… [Trackback]
[…] Read More on to that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]
March 28th, 2023 at 05:39
… [Trackback]
[…] Find More Information here on that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]