[gthumb] set request mode to constant size for the thumbnail cell renderer



commit cb6863340cc2cfe25fe3c610350a5d8c317ccb04
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Fri Nov 4 17:27:01 2011 +0100

    set request mode to constant size for the thumbnail cell renderer

 gthumb/gth-cell-renderer-thumbnail.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-cell-renderer-thumbnail.c b/gthumb/gth-cell-renderer-thumbnail.c
index ef6ffa3..cc7da9a 100644
--- a/gthumb/gth-cell-renderer-thumbnail.c
+++ b/gthumb/gth-cell-renderer-thumbnail.c
@@ -157,6 +157,13 @@ gth_cell_renderer_thumbnail_set_property (GObject      *object,
 }
 
 
+static GtkSizeRequestMode
+gth_cell_renderer_thumbnail_get_request_mode (GtkCellRenderer *cell)
+{
+	return GTK_SIZE_REQUEST_CONSTANT_SIZE;
+}
+
+
 static void
 gth_cell_renderer_thumbnail_get_size (GtkCellRenderer    *cell,
 				      GtkWidget          *widget,
@@ -395,6 +402,7 @@ gth_cell_renderer_thumbnail_class_init (GthCellRendererThumbnailClass *klass)
 	object_class->set_property = gth_cell_renderer_thumbnail_set_property;
 
 	cell_renderer = GTK_CELL_RENDERER_CLASS (klass);
+	cell_renderer->get_request_mode = gth_cell_renderer_thumbnail_get_request_mode;
 	cell_renderer->get_size = gth_cell_renderer_thumbnail_get_size;
 	cell_renderer->render = gth_cell_renderer_thumbnail_render;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]