Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2010-01-26 03:38:15 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2010-01-26 03:38:15 (GMT)
commit9fd0d076d060022c5d5e67504ff767c748a313ec (patch)
tree70de128b825d1196f89f6b86537412f19206bcd3
parentac312d782148ee2942c3207879548f7138440ca8 (diff)
Tune thumbs layout
-rw-r--r--src/jarabe/journal/preview.py4
-rw-r--r--src/jarabe/journal/thumbsview.py14
-rw-r--r--src/jarabe/journal/widgets.py1
3 files changed, 13 insertions, 6 deletions
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)