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
This commit is contained in:
parent
8640e18d1f
commit
e9f18c6d8d
@ -395,7 +395,7 @@ const EndSessionDialog = new Lang.Class({
|
|||||||
cancel: function() {
|
cancel: function() {
|
||||||
this._stopTimer();
|
this._stopTimer();
|
||||||
this._dbusImpl.emit_signal('Canceled', null);
|
this._dbusImpl.emit_signal('Canceled', null);
|
||||||
this.close(global.get_current_time());
|
this.close();
|
||||||
},
|
},
|
||||||
|
|
||||||
_confirm: function(signal) {
|
_confirm: function(signal) {
|
||||||
@ -454,7 +454,7 @@ const EndSessionDialog = new Lang.Class({
|
|||||||
let item = new ListItem(app, reason);
|
let item = new ListItem(app, reason);
|
||||||
item.connect('activate',
|
item.connect('activate',
|
||||||
Lang.bind(this, function() {
|
Lang.bind(this, function() {
|
||||||
this.close(global.get_current_time());
|
this.close();
|
||||||
}));
|
}));
|
||||||
this._applicationList.add(item.actor, { x_fill: true });
|
this._applicationList.add(item.actor, { x_fill: true });
|
||||||
this._stopTimer();
|
this._stopTimer();
|
||||||
|
@ -215,7 +215,7 @@ const InstallExtensionDialog = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_onCancelButtonPressed: function(button, event) {
|
_onCancelButtonPressed: function(button, event) {
|
||||||
this.close(global.get_current_time());
|
this.close();
|
||||||
this._invocation.return_value(GLib.Variant.new('(s)', ['cancelled']));
|
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);
|
gotExtensionZipFile(session, message, uuid, dir, callback, errback);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
this.close(global.get_current_time());
|
this.close();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user