[polari/wip/fmuellner/ci-snapshots: 6/9] main: Identify snapshot builds in About



commit c993e4bfba1de42ce73a51e19933eb207c84d985
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Jul 25 18:05:38 2018 +0200

    main: Identify snapshot builds in About
    
    Development snapshots are different from regularly installed versions,
    even from nightly builds, as they may be built from code that hasn't
    even been merged to master yet (and maybe never will).
    
    Reflect that by setting an appropriate application name.
    
    https://gitlab.gnome.org/GNOME/polari/issues/61

 src/application.js | 1 -
 src/polari.c       | 6 ++++++
 2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/application.js b/src/application.js
index dc07080..65f04ae 100644
--- a/src/application.js
+++ b/src/application.js
@@ -29,7 +29,6 @@ var Application = GObject.registerClass({
         super._init({ application_id: 'org.gnome.Polari',
                       flags: Gio.ApplicationFlags.HANDLES_OPEN });
 
-        GLib.set_application_name('Polari');
         GLib.set_prgname('polari');
         this._retryData = new Map();
         this._nickTrackData = new Map();
diff --git a/src/polari.c b/src/polari.c
index d3dc429..9804f5e 100644
--- a/src/polari.c
+++ b/src/polari.c
@@ -49,6 +49,12 @@ main (int argc, char *argv[])
       { NULL }
     };
 
+#ifdef SNAPSHOT
+  g_set_application_name ("Polari Development Snapshot");
+#else
+  g_set_application_name ("Polari");
+#endif
+
   g_irepository_prepend_search_path (PKGLIBDIR);
 
   context = g_object_new (GJS_TYPE_CONTEXT,


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