[gnome-shell/wip/gestures: 2/10] messageTray: Add bottom drag gesture to popup the message tray
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/gestures: 2/10] messageTray: Add bottom drag gesture to popup the message tray
- Date: Fri, 27 Jun 2014 22:05:00 +0000 (UTC)
commit 13b4290e55a90568ee9e2e7df5246028ee226ead
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..d68ac86 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 EdgeDragAction = imports.ui.edgeDragAction;
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 EdgeDragAction.EdgeDragAction(St.Side.BOTTOM);
+ gesture.connect('activated', 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]