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

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

  1. บริการรถพยาบาลเอกชน Says:
    July 2nd, 2026 at 06:59

    … [Trackback]

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

  2. ปั้มคนดูไลฟ์ Says:
    July 8th, 2026 at 07:54

    … [Trackback]

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

  3. จดทะเบียนบริษัท Says:
    July 18th, 2026 at 08:56

    … [Trackback]

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

  4. https://pinbetter-caino-zerkalo.ru/zerkalo Says:
    July 21st, 2026 at 14:34

    … [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. ทัวร์ญี่ปุ่นส่วนตัว Says:
    September 2nd, 2026 at 16:54

    … [Trackback]

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

  6. เช็คราคาการ์ดวันพีช Says:
    September 8th, 2026 at 18:36

    … [Trackback]

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

  7. Suntikan Typhoid Says:
    September 8th, 2026 at 20:30

    … [Trackback]

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

  8. โรงงานผลิตสปริง Says:
    September 11th, 2026 at 23:40

    … [Trackback]

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

  9. cybersecurity services Says:
    September 16th, 2026 at 03:37

    … [Trackback]

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

  10. Angthong National Marine Park Says:
    September 26th, 2026 at 20:04

    … [Trackback]

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

  11. dulo Says:
    September 29th, 2026 at 07:57

    … [Trackback]

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

  12. รับออกแบบและติดตั้งระบบ Network องค์กร ชลบุรี Says:
    October 2nd, 2026 at 02:44

    … [Trackback]

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

Comments