[gnome-games] ui: Set the application's environment
- From: Adrien Plazas <aplazas src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-games] ui: Set the application's environment
 
- Date: Wed, 31 Aug 2016 06:47:27 +0000 (UTC)
 
commit 0090ed97ec117cf863e631a4b7f29a776684290b
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Wed Aug 31 01:27:08 2016 +0200
    ui: Set the application's environment
    
    This allows the application to present itself properly to other
    programs.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=770625
 src/ui/application.vala |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/ui/application.vala b/src/ui/application.vala
index 0d752d7..376f2a6 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -12,6 +12,12 @@ public class Games.Application : Gtk.Application {
        }
 
        construct {
+               Environment.set_prgname ("gnome-games");
+               Environment.set_application_name (_("Games"));
+               Gtk.Window.set_default_icon_name ("org.gnome.Games");
+               Environment.set_variable ("PULSE_PROP_media.role", "game", true);
+               Environment.set_variable ("PULSE_PROP_application.icon_name", "org.gnome.Games", true);
+
                add_actions ();
                add_signal_handlers ();
        }
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]