[gnome-shell] Remove excess parameter to g_app_info_launch()



commit 6b71b79d28ddcc65699c6d28d19cb913eb7695f3
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Jul 15 03:42:06 2017 +0200

    Remove excess parameter to g_app_info_launch()
    
    Commit 39a840e2c3d added an additional parameter to shell_app_launch().
    When adjusting callers, the parameter was also added accidentally to
    calls of the confusingly similar g_app_info_launch() ...
    Remove those to fix some warnings.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=781471

 js/misc/util.js                    |    2 +-
 js/ui/calendar.js                  |    2 +-
 js/ui/components/autorunManager.js |    3 +--
 js/ui/remoteSearch.js              |    2 +-
 4 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/js/misc/util.js b/js/misc/util.js
index 5abcb54..bcf8614 100644
--- a/js/misc/util.js
+++ b/js/misc/util.js
@@ -97,7 +97,7 @@ function spawnApp(argv) {
                                                       Gio.AppInfoCreateFlags.SUPPORTS_STARTUP_NOTIFICATION);
 
         let context = global.create_app_launch_context(0, -1);
-        app.launch([], context, false);
+        app.launch([], context);
     } catch(err) {
         _handleSpawnError(argv[0], err);
     }
diff --git a/js/ui/calendar.js b/js/ui/calendar.js
index f27c894..298807d 100644
--- a/js/ui/calendar.js
+++ b/js/ui/calendar.js
@@ -920,7 +920,7 @@ const EventsSection = new Lang.Class({
         let app = this._getCalendarApp();
         if (app.get_id() == 'evolution.desktop')
             app = Gio.DesktopAppInfo.new('evolution-calendar.desktop');
-        app.launch([], global.create_app_launch_context(0, -1), false);
+        app.launch([], global.create_app_launch_context(0, -1));
     },
 
     setDate: function(date) {
diff --git a/js/ui/components/autorunManager.js b/js/ui/components/autorunManager.js
index 10afae2..e6ea583 100644
--- a/js/ui/components/autorunManager.js
+++ b/js/ui/components/autorunManager.js
@@ -63,8 +63,7 @@ function startAppForMount(app, mount) {
 
     try {
         retval = app.launch(files, 
-                            global.create_app_launch_context(0, -1),
-                            false)
+                            global.create_app_launch_context(0, -1));
     } catch (e) {
         log('Unable to launch the application ' + app.get_name()
             + ': ' + e.toString());
diff --git a/js/ui/remoteSearch.js b/js/ui/remoteSearch.js
index dab2ad1..5e1aada 100644
--- a/js/ui/remoteSearch.js
+++ b/js/ui/remoteSearch.js
@@ -299,7 +299,7 @@ const RemoteSearchProvider = new Lang.Class({
         // the provider is not compatible with the new version of the interface, launch
         // the app itself but warn so we can catch the error in logs
         log('Search provider ' + this.appInfo.get_id() + ' does not implement LaunchSearch');
-        this.appInfo.launch([], global.create_app_launch_context(0, -1), false);
+        this.appInfo.launch([], global.create_app_launch_context(0, -1));
     }
 });
 


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