[gthumb] use the fixed size only for horizontal sidebars
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] use the fixed size only for horizontal sidebars
- Date: Sun, 19 Sep 2010 17:12:07 +0000 (UTC)
commit f30dc2bef44102e92eba36fd969baaa3618df5db
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Sep 19 19:09:27 2010 +0200
use the fixed size only for horizontal sidebars
the fixed size on horizontal sidebars allows to view a single row
at a time, there is no such need on vertical sidebars that already
display a single column at a time.
gthumb/gth-file-list.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-file-list.c b/gthumb/gth-file-list.c
index edf22f9..c1b4980 100644
--- a/gthumb/gth-file-list.c
+++ b/gthumb/gth-file-list.c
@@ -568,8 +568,11 @@ _gth_file_list_set_type (GthFileList *file_list,
"visible", ((file_list->priv->type == GTH_FILE_LIST_TYPE_BROWSER) || (file_list->priv->type == GTH_FILE_LIST_TYPE_SELECTOR)),
NULL);
+ /* use the fixed size for horizontal sidebars to view a single row at
+ * a time. */
+
g_object_set (file_list->priv->thumbnail_renderer,
- "fixed_size", (file_list->priv->type == GTH_FILE_LIST_TYPE_H_SIDEBAR) || (file_list->priv->type == GTH_FILE_LIST_TYPE_V_SIDEBAR),
+ "fixed_size", (file_list->priv->type == GTH_FILE_LIST_TYPE_H_SIDEBAR),
NULL);
_gth_file_list_update_orientation (file_list);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]