From 9fd0d076d060022c5d5e67504ff767c748a313ec Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Tue, 26 Jan 2010 03:38:15 +0000 Subject: Tune thumbs layout --- diff --git a/src/jarabe/journal/preview.py b/src/jarabe/journal/preview.py index 0748e3a..a25a972 100644 --- a/src/jarabe/journal/preview.py +++ b/src/jarabe/journal/preview.py @@ -31,8 +31,8 @@ from jarabe.journal import model fetched = dispatch.Signal() -THUMB_WIDTH = style.zoom(240) -THUMB_HEIGHT = style.zoom(180) +THUMB_WIDTH = style.zoom(190) +THUMB_HEIGHT = style.zoom(142) _CHUNK_SIZE = 1024 * 10 # 10K _MAX_FILESIZE = 1024 * 1024 * 10 # 10M diff --git a/src/jarabe/journal/thumbsview.py b/src/jarabe/journal/thumbsview.py index f3959ff..ccf827b 100644 --- a/src/jarabe/journal/thumbsview.py +++ b/src/jarabe/journal/thumbsview.py @@ -35,6 +35,7 @@ class _Cell(Cell): self._last_thumb_mtime = None cell = gtk.HBox() + cell.props.border_width = style.DEFAULT_PADDING self.add(cell) # toolbar @@ -110,10 +111,15 @@ class ThumbsView(HomogeneView): def __init__(self): HomogeneView.__init__(self, _Cell) - cell_width = preview.THUMB_WIDTH + style.SMALL_ICON_SIZE + \ - style.DEFAULT_PADDING + style.DEFAULT_SPACING * 2 - cell_height = preview.THUMB_HEIGHT + entry.TEXT_HEIGHT * 4 + \ - style.DEFAULT_PADDING * 3 + style.DEFAULT_SPACING + cell_width = style.DEFAULT_PADDING * 2 + \ + style.GRID_CELL_SIZE + \ + preview.THUMB_WIDTH + + cell_height = style.DEFAULT_PADDING * 2 + \ + preview.THUMB_HEIGHT + \ + style.DEFAULT_PADDING * 2 + \ + entry.TEXT_HEIGHT * 4 + self.cell_size = (cell_width, cell_height) self.connect('frame-scrolled', self.__frame_scrolled_cb) diff --git a/src/jarabe/journal/widgets.py b/src/jarabe/journal/widgets.py index 5d82325..32573ed 100644 --- a/src/jarabe/journal/widgets.py +++ b/src/jarabe/journal/widgets.py @@ -319,6 +319,7 @@ class Timestamp(gtk.Label): def __init__(self, **kwargs): gobject.GObject.__init__(self, **kwargs) + self.props.selectable = True def fill_in(self, metadata): self.props.label = misc.get_date(metadata) -- cgit v0.9.1