[gnome-shell] modalDialog: drop global.get_current_time() arguments to close
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] modalDialog: drop global.get_current_time() arguments to close
- Date: Wed, 20 Feb 2013 19:17:04 +0000 (UTC)
commit e9f18c6d8da01e0af2a2b4836d78210e9de7c511
Author: Ray Strode <rstrode redhat com>
Date: Wed Feb 20 13:12:42 2013 -0500
modalDialog: drop global.get_current_time() arguments to close
Modal dialogs take an optional timestamp in their close method.
If the timestamp is not passed in, then global.get_current_time()
is used.
Some callers of the close method pass in global.get_current_time()
unnecessarly (since it's the default).
This commit drops the argument for those cases.
https://bugzilla.gnome.org/show_bug.cgi?id=694296
js/ui/endSessionDialog.js | 4 ++--
js/ui/extensionDownloader.js | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js
index 11dbc9d..7d46144 100644
--- a/js/ui/endSessionDialog.js
+++ b/js/ui/endSessionDialog.js
@@ -395,7 +395,7 @@ const EndSessionDialog = new Lang.Class({
cancel: function() {
this._stopTimer();
this._dbusImpl.emit_signal('Canceled', null);
- this.close(global.get_current_time());
+ this.close();
},
_confirm: function(signal) {
@@ -454,7 +454,7 @@ const EndSessionDialog = new Lang.Class({
let item = new ListItem(app, reason);
item.connect('activate',
Lang.bind(this, function() {
- this.close(global.get_current_time());
+ this.close();
}));
this._applicationList.add(item.actor, { x_fill: true });
this._stopTimer();
diff --git a/js/ui/extensionDownloader.js b/js/ui/extensionDownloader.js
index 7f9a871..23bdddc 100644
--- a/js/ui/extensionDownloader.js
+++ b/js/ui/extensionDownloader.js
@@ -215,7 +215,7 @@ const InstallExtensionDialog = new Lang.Class({
},
_onCancelButtonPressed: function(button, event) {
- this.close(global.get_current_time());
+ this.close();
this._invocation.return_value(GLib.Variant.new('(s)', ['cancelled']));
},
@@ -257,7 +257,7 @@ const InstallExtensionDialog = new Lang.Class({
gotExtensionZipFile(session, message, uuid, dir, callback, errback);
}));
- this.close(global.get_current_time());
+ this.close();
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]