[gnome-shell] Remove user_data arguments for callbacks
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Remove user_data arguments for callbacks
- Date: Fri, 19 Mar 2010 19:05:46 +0000 (UTC)
commit 52f1cc6d19cdc0b53a50897fb2750ad10d471be6
Author: Florian Müllner <fmuellner src gnome org>
Date: Fri Mar 19 12:13:31 2010 +0100
Remove user_data arguments for callbacks
Gjs now removes user_data arguments for callbacks - the existing
code still works because all user_data arguments are unused and
at the end of the argument list, but it's a lot prettier to remove
them.
js/ui/placeDisplay.js | 2 +-
js/ui/runDialog.js | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/placeDisplay.js b/js/ui/placeDisplay.js
index 230bd74..a7a35d1 100644
--- a/js/ui/placeDisplay.js
+++ b/js/ui/placeDisplay.js
@@ -93,7 +93,7 @@ PlaceDeviceInfo.prototype = {
if (!this.isRemovable())
return;
- this._mount.unmount(0, null, Lang.bind(this, this._removeFinish), null);
+ this._mount.unmount(0, null, Lang.bind(this, this._removeFinish));
},
_removeFinish: function(o, res, data) {
diff --git a/js/ui/runDialog.js b/js/ui/runDialog.js
index 2cd8518..403e6df 100644
--- a/js/ui/runDialog.js
+++ b/js/ui/runDialog.js
@@ -63,7 +63,7 @@ CommandCompleter.prototype = {
_onGetEnumerateComplete : function(obj, res) {
this._enumerator = obj.enumerate_children_finish(res);
- this._enumerator.next_files_async(100, GLib.PRIORITY_LOW, null, Lang.bind(this, this._onNextFileComplete), null);
+ this._enumerator.next_files_async(100, GLib.PRIORITY_LOW, null, Lang.bind(this, this._onNextFileComplete));
},
_onNextFileComplete : function(obj, res) {
@@ -72,7 +72,7 @@ CommandCompleter.prototype = {
this._childs[this._i].push(files[i].get_name());
}
if (files.length) {
- this._enumerator.next_files_async(100, GLib.PRIORITY_LOW, null, Lang.bind(this, this._onNextFileComplete), null);
+ this._enumerator.next_files_async(100, GLib.PRIORITY_LOW, null, Lang.bind(this, this._onNextFileComplete));
} else {
this._enumerator.close(null);
this._enumerator = null;
@@ -99,7 +99,7 @@ CommandCompleter.prototype = {
}
let file = Gio.file_new_for_path(this._paths[i]);
this._childs[this._i] = [];
- file.enumerate_children_async(Gio.FILE_ATTRIBUTE_STANDARD_NAME, Gio.FileQueryInfoFlags.NONE, GLib.PRIORITY_LOW, null, Lang.bind(this, this._onGetEnumerateComplete), null);
+ file.enumerate_children_async(Gio.FILE_ATTRIBUTE_STANDARD_NAME, Gio.FileQueryInfoFlags.NONE, GLib.PRIORITY_LOW, null, Lang.bind(this, this._onGetEnumerateComplete));
},
_onChanged : function(m, f, of, type) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]