[gnome-games] lightsoff: Set application name instead of prgname
- From: Piotr DrÄg <piotrdrag src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] lightsoff: Set application name instead of prgname
- Date: Sat, 31 Mar 2012 00:41:25 +0000 (UTC)
commit 9634f870de3c4058ed586723d5bf211cae1335f2
Author: Piotr DrÄg <piotrdrag gmail com>
Date: Sat Mar 31 02:38:22 2012 +0200
lightsoff: Set application name instead of prgname
It seems that every other Vala game uses translatable set_application_name
instead of set_prgname, so do it like this also here. Volia, now we've got a
pretty window title.
lightsoff/src/lightsoff.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lightsoff/src/lightsoff.vala b/lightsoff/src/lightsoff.vala
index ea2eb92..cd07a07 100644
--- a/lightsoff/src/lightsoff.vala
+++ b/lightsoff/src/lightsoff.vala
@@ -163,7 +163,7 @@ public class LightsOff : Gtk.Application
Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8");
Intl.textdomain (Config.GETTEXT_PACKAGE);
- Environment.set_prgname ("lightsoff");
+ Environment.set_application_name (_("Lights Off"));
if (GtkClutter.init (ref args) != Clutter.InitError.SUCCESS)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]