From 6b71b79d28ddcc65699c6d28d19cb913eb7695f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sat, 15 Jul 2017 03:42:06 +0200 Subject: [PATCH] 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 5abcb54c9..bcf8614ef 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 f27c894dc..298807db9 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 10afae25f..e6ea58358 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 dab2ad1d8..5e1aadae4 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)); } });