Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tray.py
diff options
context:
space:
mode:
authorerikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-11-07 21:29:16 (GMT)
committer erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-11-07 21:29:16 (GMT)
commitb356d9c19dbba01034c7fad16740cfd92a236d2b (patch)
tree99f3c70ff6a6b58e8e6cf3daf651b148f6122f54 /tray.py
parent35fad514aa8d03fa5d3822d8dda1aa8ddb8a8c36 (diff)
tray buttons not sens until they have to be
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@892 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'tray.py')
-rw-r--r--tray.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tray.py b/tray.py
index 01e800e..f67a523 100644
--- a/tray.py
+++ b/tray.py
@@ -132,7 +132,7 @@ class _TrayScrollButton(gtk.Button):
def _viewport_can_scroll_changed_cb(self, viewport, pspec):
#self.props.visible = self._viewport.props.can_scroll
- pass
+ self.set_sensitive(self._viewport.props.can_scroll)
def _clicked_cb(self, button):
self._viewport.scroll(self._scroll_direction)
@@ -170,6 +170,12 @@ class HTray(gtk.HBox):
scroll_left.viewport = self._viewport
scroll_right.viewport = self._viewport
+ self.connect_after("size-allocate", self._sizeAllocateCb)
+
+
+ def _sizeAllocateCb(self, widget, event ):
+ self._viewport.notify('can-scroll')
+
def get_children(self):
return self._viewport.traybar.get_children()