Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tray.py
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2011-02-02 16:27:46 (GMT)
committer Daniel Drake <dsd@laptop.org>2011-02-02 16:37:48 (GMT)
commit3bc80c776f7ef2578a4b9fd26028574a12982ea3 (patch)
tree890aa0ee4a2b07d9c9704883d11f0385e03a2e70 /tray.py
parentca2bbd6d74342247de97cffa150b577246c63107 (diff)
UI rework
This is a rework of the UI that uses a more standard GTK+ principles than previously. There is still a small amount of black magic, kept away inside mediaview.py. The UI/model separation was also refined in places, and a lot of code was simplified. Overall the functionality remains identical, and I tried to keep the UI the same as before (but it is not pixel perfect). As this was quite big there may be some bugs to shake out.
Diffstat (limited to 'tray.py')
-rw-r--r--tray.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/tray.py b/tray.py
index 5cf3fa5..4f7956d 100644
--- a/tray.py
+++ b/tray.py
@@ -21,12 +21,8 @@ import hippo
import sugar
from sugar.graphics import style
-from sugar.graphics.palette import Palette, ToolInvoker
-from sugar.graphics.toolbutton import ToolButton
from sugar.graphics.icon import Icon
-from constants import Constants
-
_PREVIOUS_PAGE = 0
_NEXT_PAGE = 1
@@ -148,8 +144,8 @@ class HTray(gtk.VBox):
separator = hippo.Canvas()
box = hippo.CanvasBox(
- border_color=Constants.colorWhite.get_int(),
- background_color=Constants.colorWhite.get_int(),
+ border_color=0xffffffff,
+ background_color=0xffffffff,
box_height=1,
border_bottom=1)
separator.set_root(box)
@@ -203,4 +199,4 @@ class HTray(gtk.VBox):
return self._viewport.traybar.get_item_index(item)
def scroll_to_end(self):
- self._viewport._scroll_to_end() \ No newline at end of file
+ self._viewport._scroll_to_end()