Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webactivity.py
diff options
context:
space:
mode:
authorManuel Quiñones <manuq@laptop.org>2012-10-23 14:35:11 (GMT)
committer Manuel Quiñones <manuq@laptop.org>2012-10-23 14:35:11 (GMT)
commit269144e24d44ee2ebe4054c858a826d21215f592 (patch)
treea1e6def817529cd1c722ba75eb9634fa8008f508 /webactivity.py
parent9c120d63889fb8e52f108656eeeb66d1e6dbc507 (diff)
Revert "Touch: Get out of activity fullscreen mode SL #4013"
This is in toolkit now, commit 20ef2975 . This reverts commit c9975a7c356b6c7d81473560cd7d5d611c82bfcb.
Diffstat (limited to 'webactivity.py')
-rw-r--r--webactivity.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/webactivity.py b/webactivity.py
index 81ec4fd..0fbf858 100644
--- a/webactivity.py
+++ b/webactivity.py
@@ -54,7 +54,6 @@ from sugar3.graphics.icon import Icon
from sugar3 import mime
from sugar3.graphics.toolbarbox import ToolbarButton
-from sugar3.graphics.window import _UNFULLSCREEN_BUTTON_VISIBILITY_TIMEOUT
PROFILE_VERSION = 2
@@ -208,9 +207,6 @@ class WebActivity(activity.Activity):
self.model = Model()
self.model.connect('add_link', self._add_link_model_cb)
- self.set_events(Gdk.EventMask.TOUCH_MASK)
- self.connect('event', self.__event_cb)
-
# HACK to allow Escape key stop loading on fullscreen mode
# http://bugs.sugarlabs.org/ticket/1434
self.disconnect_by_func(self._Window__key_press_cb)
@@ -435,20 +431,6 @@ class WebActivity(activity.Activity):
def _go_home_button_cb(self, button):
self._tabbed_view.load_homepage()
- def __event_cb(self, widget, event):
- if self._is_fullscreen and event.type == Gdk.EventType.TOUCH_END:
- # Show Unfullscreen button when the user clicks over the canvas
- self._unfullscreen_button.show()
-
- if self._unfullscreen_button_timeout_id is not None:
- GObject.source_remove(self._unfullscreen_button_timeout_id)
- self._unfullscreen_button_timeout_id = None
-
- self._unfullscreen_button_timeout_id = \
- GObject.timeout_add_seconds( \
- _UNFULLSCREEN_BUTTON_VISIBILITY_TIMEOUT, \
- self._Window__unfullscreen_button_timeout_cb)
-
def _key_press_cb(self, widget, event):
# HACK: this is the hacked version of
# sugar3.graphics.Window.__key_press_cb function to allow stop