[gnome-weather] Set the application flag to be able to override the app id



commit b0748f99a733ab63bd9eda64c449c1b4e92df239
Author: Simon Schampijer <simon schampijer endlessm com>
Date:   Tue Mar 7 22:01:33 2017 +0100

    Set the application flag to be able to override the app id
    
    This allows to override the application ID from the command
    line with --gapplication-app-id, which has been introduced in
    GLib 2.48. This is useful when modifying GNOME Weather in
    GNOME Builder using the flatpak tools and run the modified
    application and the original one at the same time.

 src/app/main.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/app/main.js b/src/app/main.js
index 3f57083..b122663 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -48,7 +48,8 @@ const Application = new Lang.Class({
     Extends: Gtk.Application,
 
     _init: function() {
-        this.parent({ application_id: pkg.name });
+        this.parent({ application_id: pkg.name,
+                      flags: (Gio.ApplicationFlags.CAN_OVERRIDE_APP_ID |  Gio.ApplicationFlags.FLAGS_NONE) 
});
         GLib.set_application_name(_("Weather"));
         Gtk.Window.set_default_icon_name("org.gnome.Weather");
     },


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