[gthumb] set a fixed size for the item and the renderers
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] set a fixed size for the item and the renderers
- Date: Sun, 6 Nov 2011 08:48:48 +0000 (UTC)
commit 2ac840c2d60b2de06b86ee68476db72d545d6dd5
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Nov 6 09:37:49 2011 +0100
set a fixed size for the item and the renderers
gthumb/gth-icon-view.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-icon-view.c b/gthumb/gth-icon-view.c
index 3b0d455..f8d43fb 100644
--- a/gthumb/gth-icon-view.c
+++ b/gthumb/gth-icon-view.c
@@ -350,6 +350,9 @@ gth_icon_view_update_attributes (GthFileView *self,
g_object_set (text_renderer,
"width", thumb_size + THUMBNAIL_BORDER,
NULL);
+ gtk_cell_renderer_set_fixed_size (thumbnail_renderer, thumb_size + THUMBNAIL_BORDER, thumb_size + THUMBNAIL_BORDER);
+ gtk_cell_renderer_set_fixed_size (text_renderer, thumb_size + THUMBNAIL_BORDER, -1);
+ gtk_icon_view_set_item_width (GTK_ICON_VIEW (self), thumb_size + THUMBNAIL_BORDER);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]