[gnome-characters] menu: Suppress visible-but-not-mapped warning
- From: Daiki Ueno <dueno src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-characters] menu: Suppress visible-but-not-mapped warning
- Date: Mon, 16 Mar 2015 06:53:42 +0000 (UTC)
commit baf7f5b06842161aceaeb94538203eea2dbcf35d
Author: Daiki Ueno <dueno src gnome org>
Date: Mon Mar 16 15:47:30 2015 +0900
menu: Suppress visible-but-not-mapped warning
Unselect font listbox at ::unmap so the JS callback of the
::row-selected signal isn't called at exit.
src/menu.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/menu.js b/src/menu.js
index 2d7b58b..7793b2b 100644
--- a/src/menu.js
+++ b/src/menu.js
@@ -64,7 +64,10 @@ const MenuPopover = new Lang.Class({
// This silents warning at Characters exit about this widget being
// visible but not mapped. Borrowed from Maps.
- this.connect('unmap', function(popover) { popover.hide(); });
+ this.connect('unmap', function(popover) {
+ popover._font_listbox.unselect_all();
+ popover.hide();
+ });
},
_handleSearchChanged: function(entry) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]