[gnome-characters] characterList: Monitor button-release event



commit 70c8420a779fdb1a498489852e8707af37cfa150
Author: Daiki Ueno <dueno src gnome org>
Date:   Mon Mar 2 14:26:53 2015 +0900

    characterList: Monitor button-release event
    
    To enable popover to be closed when the character list is clicked.

 src/characterList.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/characterList.js b/src/characterList.js
index 6aa8425..59a9fbd 100644
--- a/src/characterList.js
+++ b/src/characterList.js
@@ -97,7 +97,8 @@ const CharacterListWidget = new Lang.Class({
         this._fontDescription = filtered.fontDescription;
         this._characters = [];
         this._rows = [];
-        this.add_events(Gdk.EventMask.BUTTON_PRESS_MASK);
+        this.add_events(Gdk.EventMask.BUTTON_PRESS_MASK |
+                        Gdk.EventMask.BUTTON_RELEASE_MASK);
     },
 
     vfunc_button_press_event: function(event) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]