[gthumb] use gtk_cell_area_box_pack_start to specify the fixed property
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] use gtk_cell_area_box_pack_start to specify the fixed property
- Date: Tue, 25 Oct 2011 14:55:45 +0000 (UTC)
commit ee5ec4789d4d99cc2ff9d4ef054379ecc7b1b925
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Oct 21 14:08:42 2011 +0200
use gtk_cell_area_box_pack_start to specify the fixed property
the fixed property should speed-up the cell rendering
gthumb/gth-icon-view.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-icon-view.c b/gthumb/gth-icon-view.c
index 02eaaba..06fda9b 100644
--- a/gthumb/gth-icon-view.c
+++ b/gthumb/gth-icon-view.c
@@ -311,7 +311,14 @@ gth_icon_view_add_renderer (GthFileView *self,
GthFileViewRendererType renderer_type,
GtkCellRenderer *renderer)
{
- gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (self), renderer, FALSE);
+ GtkCellArea *cell_area;
+
+ g_object_get (self, "cell-area", &cell_area, NULL);
+ gtk_cell_area_box_pack_start (GTK_CELL_AREA_BOX (cell_area),
+ renderer,
+ FALSE,
+ FALSE,
+ TRUE);
return GTK_CELL_LAYOUT (self);
}
@@ -481,7 +488,7 @@ gth_icon_view_real_get_n_selected (GthFileSelection *base)
GtkWidget *
gth_icon_view_new (void)
{
- return g_object_new (GTH_TYPE_ICON_VIEW, NULL);
+ return gth_icon_view_new_with_model (NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]