rygel r615 - trunk/src/rygel



Author: zeeshanak
Date: Thu Feb 19 17:16:53 2009
New Revision: 615
URL: http://svn.gnome.org/viewvc/rygel?rev=615&view=rev

Log:
Set appliction name.

This is just the translated PACKAGE_NAME from config.h.

Modified:
   trunk/src/rygel/cstuff.vapi
   trunk/src/rygel/rygel-main.vala

Modified: trunk/src/rygel/cstuff.vapi
==============================================================================
--- trunk/src/rygel/cstuff.vapi	(original)
+++ trunk/src/rygel/cstuff.vapi	Thu Feb 19 17:16:53 2009
@@ -31,6 +31,9 @@
 
         [CCode (cname = "PLUGIN_DIR")]
         public static const string PLUGIN_DIR;
+
+        [CCode (cname = "PACKAGE_NAME")]
+        public static const string PACKAGE_NAME;
     }
 
     /**

Modified: trunk/src/rygel/rygel-main.vala
==============================================================================
--- trunk/src/rygel/rygel-main.vala	(original)
+++ trunk/src/rygel/rygel-main.vala	Thu Feb 19 17:16:53 2009
@@ -36,6 +36,8 @@
     private int exit_code;
 
     public Main () throws GLib.Error {
+        Environment.set_application_name (_(BuildConfig.PACKAGE_NAME));
+
         this.media_servers = new ArrayList<MediaServer> ();
         this.plugin_loader = new PluginLoader ();
         this.ms_factory = new MediaServerFactory ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]