From 677cdfd6c8f1dadece4a2c643bf1a59cd1e71de8 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Wed, 20 Feb 2013 13:15:51 -0500 Subject: [PATCH] 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 file changed, 1 insertion(+) diff --git a/js/ui/modalDialog.js b/js/ui/modalDialog.js index 7c99598ca..4649d6d50 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'); }) }); },