Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/jarabe/journal/thumbsview.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-08-20 13:02:56 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-08-25 15:47:56 (GMT)
commitd108520f37360c5edc0ac20a1511cae352aa786c (patch)
treead00148404076ab50ec4763b4cd09e179e5b02d9 /src/jarabe/journal/thumbsview.py
parentf74e5d1fdcd96dba7f4e37dfc5e9b8ef8e6e02d3 (diff)
Implement smooth scrolling in TableView
Diffstat (limited to 'src/jarabe/journal/thumbsview.py')
-rw-r--r--src/jarabe/journal/thumbsview.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/jarabe/journal/thumbsview.py b/src/jarabe/journal/thumbsview.py
index 4dca8df..920bf2c 100644
--- a/src/jarabe/journal/thumbsview.py
+++ b/src/jarabe/journal/thumbsview.py
@@ -21,14 +21,19 @@ import hippo
from jarabe.journal.browse.lazymodel import Source
from jarabe.journal.browse.tableview import TableView, TableCell
+from jarabe.journal.browse.source import *
class ThumbsCell(TableCell, hippo.CanvasBox):
def __init__(self):
TableCell.__init__(self)
hippo.CanvasBox.__init__(self, orientation=hippo.ORIENTATION_VERTICAL)
- label = hippo.CanvasWidget(widget=gtk.Button('!!!'))
- self.append(label)
+ self.label = hippo.CanvasText(
+ size_mode=hippo.CANVAS_SIZE_ELLIPSIZE_END)
+ self.append(self.label)
+
+ def fillin(self):
+ self.label.props.text = self.row[FIELD_TITLE] or ''
class ThumbsView(TableView):
__gsignals__ = {