[gnome-shell/wip/gestures: 2/8] messageTray: Add bottom drag gesture to popup the message tray



commit 8d211ca86b1c7304f96c268d2d13ea74dbcbfbe6
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Jun 25 17:50:02 2014 +0200

    messageTray: Add bottom drag gesture to popup the message tray

 js/ui/messageTray.js |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 92135f9..c5a5d60 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -15,6 +15,7 @@ const Signals = imports.signals;
 const St = imports.gi.St;
 const Tp = imports.gi.TelepathyGLib;
 
+const EdgeDrag = imports.ui.edgeDrag;
 const BoxPointer = imports.ui.boxpointer;
 const CtrlAltTab = imports.ui.ctrlAltTab;
 const GnomeSession = imports.misc.gnomeSession;
@@ -1933,6 +1934,10 @@ const MessageTray = new Lang.Class({
 
         this._messageTrayMenuButton = new MessageTrayMenuButton(this);
         this.actor.add_actor(this._messageTrayMenuButton.actor);
+
+        let gesture = new EdgeDrag.EdgeDragAction(St.Side.BOTTOM);
+        gesture.connect('gesture-end', Lang.bind(this, this.toggle));
+        global.stage.add_action(gesture);
     },
 
     close: function() {


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