[gnome-shell] modalDialog: emit 'closed' signal when dialog is closed
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] modalDialog: emit 'closed' signal when dialog is closed
- Date: Wed, 20 Feb 2013 19:17:09 +0000 (UTC)
commit 677cdfd6c8f1dadece4a2c643bf1a59cd1e71de8
Author: Ray Strode <rstrode redhat com>
Date: Wed Feb 20 13:15:51 2013 -0500
modalDialog: emit 'closed' signal when dialog is closed
Opening and closing a modal dialog is not instant. There
is a transition animation involved. When the dialog is
finished opening, it currently emits the "opened" signal.
When it's finished closing, however, it doesn't emit a
"closed" signal. This means, there's not a good way to
know when the dialog finishes closing.
This commit adds the "closed" signal.
https://bugzilla.gnome.org/show_bug.cgi?id=694296
js/ui/modalDialog.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/modalDialog.js b/js/ui/modalDialog.js
index 7c99598..4649d6d 100644
--- a/js/ui/modalDialog.js
+++ b/js/ui/modalDialog.js
@@ -265,6 +265,7 @@ const ModalDialog = new Lang.Class({
function() {
this.state = State.CLOSED;
this._group.hide();
+ this.emit('closed');
})
});
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]