diff options
author | Daniel Drake <dsd@laptop.org> | 2011-10-30 11:01:34 (GMT) |
---|---|---|
committer | Sascha Silbe <silbe@activitycentral.com> | 2011-11-22 12:28:57 (GMT) |
commit | 1ba539b025ed3af5498966ea1c14e2431481ac99 (patch) | |
tree | a2e91ebf324d7fb59db61d583716733a7f098f00 | |
parent | 67fd398b9d1146b69a0b25841b91cab4cc13b293 (diff) |
Tray gtk3 fixes
-rw-r--r-- | src/sugar3/graphics/tray.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sugar3/graphics/tray.py b/src/sugar3/graphics/tray.py index f14569b..07bf3e2 100644 --- a/src/sugar3/graphics/tray.py +++ b/src/sugar3/graphics/tray.py @@ -130,11 +130,11 @@ class _TrayViewport(Gtk.Viewport): return self._can_scroll_prev def _size_allocate_cb(self, viewport, allocation): - bar_requisition = self.traybar.get_child_requisition() + bar_minimum, bar_natural = self.traybar.get_preferred_size() if self.orientation == Gtk.Orientation.HORIZONTAL: - scrollable = bar_requisition[0] > allocation.width + scrollable = bar_minimum.width > allocation.width else: - scrollable = bar_requisition[1] > allocation.height + scrollable = bar_minimum.height > allocation.height if scrollable != self._scrollable: self._scrollable = scrollable |