Mercurial > geeqie.yaz
changeset 607:6c331d0ba9b6
Reset thumbnail column to NULL when hidden.
It fixes bug 1960274.
author | zas_ |
---|---|
date | Thu, 08 May 2008 22:49:16 +0000 |
parents | 408f36d536a5 |
children | be8b2516359d |
files | src/search.c |
diffstat | 1 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/search.c Thu May 08 20:21:03 2008 +0000 +++ b/src/search.c Thu May 08 22:49:16 2008 +0000 @@ -741,11 +741,18 @@ gint row = 0; gint length = 0; - if (!sd->thumb_enable) return; - store = gtk_tree_view_get_model(GTK_TREE_VIEW(sd->result_view)); - valid = gtk_tree_model_get_iter_first(store, &iter); + if (!sd->thumb_enable) + { + while (valid) + { + gtk_list_store_set(GTK_LIST_STORE(store), &iter, SEARCH_COLUMN_THUMB, NULL, -1); + valid = gtk_tree_model_iter_next(store, &iter); + } + return; + } + while (!mfd && valid) { GdkPixbuf *pixbuf;