Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorSimon Schampijer <simon@laptop.org>2012-10-04 09:35:52 (GMT)
committer Simon Schampijer <simon@laptop.org>2012-10-05 18:48:04 (GMT)
commit8fcf60b858341cfeeefbb23ed27f0faac50abda2 (patch)
tree1c85139c992ecd0bee96a1e7af5b6222bd659ecc /bin
parent9b3c453970ef923f833d8257491b2c5de4303591 (diff)
Handling gestures to show/hide the frame
We use SugarExt.GestureGrabber to listen for gestures on the root window. Swiping from the frame area towards the center does reveal the Frame. Swiping towards one of the edges does hide the Frame. This patch does depend on fe0022cd8f6a8fb94d379be287761cc3a6206086 in the toolkit-gtk3. Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Manuel QuiƱones <manuq@laptop.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/sugar-session7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/sugar-session b/bin/sugar-session
index 1519a20..42e7beb 100755
--- a/bin/sugar-session
+++ b/bin/sugar-session
@@ -111,6 +111,12 @@ def setup_keyhandler_cb():
from jarabe import frame
keyhandler.setup(frame.get_view())
+def setup_gesturehandler_cb():
+ logging.debug('STARTUP: setup_gesturehandler_cb')
+ from jarabe.view import gesturehandler
+ from jarabe import frame
+ gesturehandler.setup(frame.get_view())
+
def setup_journal_cb():
logging.debug('STARTUP: setup_journal_cb')
from jarabe.journal import journalactivity
@@ -210,6 +216,7 @@ def bootstrap():
GObject.idle_add(setup_frame_cb)
GObject.idle_add(setup_keyhandler_cb)
+ GObject.idle_add(setup_gesturehandler_cb)
GObject.idle_add(setup_journal_cb)
GObject.idle_add(setup_notification_service_cb)
GObject.idle_add(setup_file_transfer_cb)