Compdigitec Labs

« | Home | »

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 | 14 Comments »

14 Responses to “Changing the application name of a GtkAboutDialog in PHP-GTK2”

  1. ขายเหล็ก Says:
    August 1st, 2025 at 02:27

    … [Trackback]

    […] Information to that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]

  2. สบาย168 Says:
    August 3rd, 2025 at 01:41

    … [Trackback]

    […] Info on that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]

  3. สติกเกอร์ติดกล่องอาหาร Says:
    August 31st, 2025 at 20:22

    … [Trackback]

    […] Info on that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]

  4. รับฉีดโฟม Says:
    September 20th, 2025 at 00:17

    … [Trackback]

    […] Find More Info here on that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]

  5. www.qaztechforum.kz Says:
    September 29th, 2025 at 00:10

    … [Trackback]

    […] There you will find 2095 more Info on that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]

  6. รับสร้างบ้านหรู เชียงใหม่ Says:
    October 4th, 2025 at 10:31

    … [Trackback]

    […] Read More on on that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]

  7. ufa569 Says:
    October 17th, 2025 at 20:49

    … [Trackback]

    […] Find More Information here on that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]

  8. ศูนย์ดูแลผู้สูงอายุ Says:
    October 28th, 2025 at 20:54

    … [Trackback]

    […] Read More to that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]

  9. 123bet login Says:
    November 6th, 2025 at 23:17

    … [Trackback]

    […] Read More Information here to that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]

  10. cigars canada online Says:
    November 15th, 2025 at 17:05

    … [Trackback]

    […] Here you will find 23616 additional Info to that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]

  11. bulk wood pellets for heating Says:
    November 15th, 2025 at 19:03

    … [Trackback]

    […] Find More here to that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]

  12. reborn johanna Says:
    November 17th, 2025 at 11:07

    … [Trackback]

    […] Read More on that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]

  13. ข่าวสารฟุตบอล Says:
    November 19th, 2025 at 00:11

    … [Trackback]

    […] Find More on that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]

  14. Köp mikrodoserande svamp kapslar Says:
    November 19th, 2025 at 09:02

    … [Trackback]

    […] Info to that Topic: compdigitec.com/labs/2008/08/17/changing-the-application-name-of-a-gtkaboutdialog-in-php-gtk2/ […]

Comments