Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/view/frame/frame.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-04-05 10:44:03 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-04-05 10:44:03 (GMT)
commit3a90cef5b6e6d83bef00a778b5a8db7faec7d6b9 (patch)
tree13752e8a91d3c043c8dec0f74bf6617cf8d5b434 /shell/view/frame/frame.py
parent29d518eb553c3a8df64d42272b50054b8f9d8eb1 (diff)
Rework corner detection to use 1 pixel window.
Diffstat (limited to 'shell/view/frame/frame.py')
-rw-r--r--shell/view/frame/frame.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/shell/view/frame/frame.py b/shell/view/frame/frame.py
index fdff99c..bd598aa 100644
--- a/shell/view/frame/frame.py
+++ b/shell/view/frame/frame.py
@@ -19,7 +19,7 @@ import gtk
import gobject
import hippo
-from view.frame.eventframe import EventFrame
+from view.frame.eventarea import EventArea
from view.frame.ActivitiesBox import ActivitiesBox
from view.frame.ZoomBox import ZoomBox
from view.frame.overlaybox import OverlayBox
@@ -136,9 +136,9 @@ class Frame(object):
self._animator = None
self._hover = False
- self._event_frame = EventFrame()
- self._event_frame.connect('enter-corner', self._enter_corner_cb)
- self._event_frame.show()
+ self._event_area = EventArea()
+ self._event_area.connect('enter', self._enter_corner_cb)
+ self._event_area.show()
self._popup_context = FramePopupContext()
self._popup_context.connect('activated',
@@ -173,7 +173,7 @@ class Frame(object):
self._animator.add(_Animation(self, 0.0))
self._animator.start()
- self._event_frame.show()
+ self._event_area.show()
self.visible = False
if force:
@@ -192,7 +192,7 @@ class Frame(object):
self._animator.add(_Animation(self, 1.0))
self._animator.start()
- self._event_frame.hide()
+ self._event_area.hide()
self.visible = True
self.mode = MODE_FORCE
@@ -336,7 +336,7 @@ class Frame(object):
def _drag_leave_cb(self, window, drag_context, timestamp):
self._mouse_listener.mouse_leave()
- def _enter_corner_cb(self, event_frame):
+ def _enter_corner_cb(self, event_area):
self._mouse_listener.mouse_enter()
def notify_key_press(self):