Mercurial > geeqie
changeset 802:3cfc54c77b30
fixed switching thumbnails in listview on and off - bug 1984825
author | nadvornik |
---|---|
date | Sun, 08 Jun 2008 09:25:39 +0000 |
parents | 9b676bb76a2e |
children | 764fd82dd099 |
files | src/view_file_list.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/view_file_list.c Sat Jun 07 22:44:17 2008 +0000 +++ b/src/view_file_list.c Sun Jun 08 09:25:39 2008 +0000 @@ -734,7 +734,7 @@ gtk_tree_store_set(store, iter, FILE_COLUMN_POINTER, fd, FILE_COLUMN_VERSION, fd->version, - FILE_COLUMN_THUMB, (VFLIST_INFO(vf, thumbs_enabled)) ? fd->pixbuf : NULL, + FILE_COLUMN_THUMB, fd->pixbuf, FILE_COLUMN_NAME, fd->name, FILE_COLUMN_SIDECARS, sidecars, FILE_COLUMN_SIZE, size, @@ -1508,14 +1508,16 @@ column = gtk_tree_view_get_column(GTK_TREE_VIEW(listview), 0); /* first column is thumbnail */ if (!column) return; - gtk_tree_view_column_set_fixed_width(column, ((thumb) ? options->thumbnails.max_width : 4) + 10); + gtk_tree_view_column_set_visible(column, thumb); + + gtk_tree_view_column_set_fixed_width(column, options->thumbnails.max_width + 40); list = gtk_tree_view_column_get_cell_renderers(column); if (!list) return; cell = list->data; g_list_free(list); - g_object_set(G_OBJECT(cell), "height", (thumb) ? options->thumbnails.max_height : -1, NULL); + g_object_set(G_OBJECT(cell), "height", options->thumbnails.max_height, NULL); gtk_tree_view_columns_autosize(GTK_TREE_VIEW(listview)); }