[Xfce4-commits] <terminal:master> Better to use the real application name in about.

Nick Schermer noreply at xfce.org
Sun Feb 7 19:16:01 CET 2010


Updating branch refs/heads/master
         to 4b1293fb042d3d8c88163e0637c2734405086676 (commit)
       from d53055b1bb19e3e2a6239519e13257ce8e7f7cdc (commit)

commit 4b1293fb042d3d8c88163e0637c2734405086676
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Feb 7 18:46:17 2010 +0100

    Better to use the real application name in about.

 terminal/terminal-dialogs.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/terminal/terminal-dialogs.c b/terminal/terminal-dialogs.c
index 7bec37a..c6850f2 100644
--- a/terminal/terminal-dialogs.c
+++ b/terminal/terminal-dialogs.c
@@ -68,7 +68,6 @@ terminal_dialogs_show_about (GtkWindow *parent)
   };
 
   GdkPixbuf *logo;
-  gchar     *name;
 
   /* try to load the about logo */
   logo = gdk_pixbuf_new_from_file_at_size (DATADIR "/icons/hicolor/scalable/apps/Terminal.svg", 168, 168, NULL);
@@ -85,7 +84,6 @@ terminal_dialogs_show_about (GtkWindow *parent)
 #endif
 
   /* open the about dialog */
-  name = g_get_prgname ();
   gtk_show_about_dialog (parent,
                          "authors", authors,
                          "artists", artists,
@@ -95,7 +93,7 @@ terminal_dialogs_show_about (GtkWindow *parent)
                                       "Copyright \302\251 2007-2010 Nick Schermer",
                          "license", XFCE_LICENSE_GPL,
                          "logo", logo,
-                         "program-name", name,
+                         "program-name", g_get_application_name (),
                          "translator-credits", _("translator-credits"),
                          "version", PACKAGE_VERSION,
                          "website", "http://goodies.xfce.org/projects/applications/terminal",
@@ -105,8 +103,6 @@ terminal_dialogs_show_about (GtkWindow *parent)
   /* release the about logo (if any) */
   if (G_LIKELY (logo != NULL))
     g_object_unref (G_OBJECT (logo));
-
-  g_free (name);
 }
 
 



More information about the Xfce4-commits mailing list