Mercurial > geeqie
diff src/layout.c @ 1506:d352a44545a6
Force thumbnails refreshing when thumbnails dimensions are modified through Preferences.
author | zas_ |
---|---|
date | Thu, 02 Apr 2009 23:11:07 +0000 |
parents | 331e2d60d447 |
children | 73cecf473802 |
line wrap: on
line diff
--- a/src/layout.c Thu Apr 02 16:10:12 2009 +0000 +++ b/src/layout.c Thu Apr 02 23:11:07 2009 +0000 @@ -904,6 +904,11 @@ layout_status_update_progress(lw, val, text); } +static void layout_list_sync_thumb(LayoutWindow *lw) +{ + if (lw->vf) vf_thumb_set(lw->vf, lw->options.show_thumbnails); +} + static GtkWidget *layout_list_new(LayoutWindow *lw) { lw->vf = vf_new(lw->options.file_view_type, NULL); @@ -913,24 +918,12 @@ vf_set_thumb_status_func(lw->vf, layout_list_thumb_cb, lw); vf_marks_set(lw->vf, lw->options.show_marks); - - switch (lw->options.file_view_type) - { - case FILEVIEW_ICON: - break; - case FILEVIEW_LIST: - vf_thumb_set(lw->vf, lw->options.show_thumbnails); - break; - } + + layout_list_sync_thumb(lw); return lw->vf->widget; } -static void layout_list_sync_thumb(LayoutWindow *lw) -{ - if (lw->vf) vf_thumb_set(lw->vf, lw->options.show_thumbnails); -} - static void layout_list_sync_marks(LayoutWindow *lw) { if (lw->vf) vf_marks_set(lw->vf, lw->options.show_marks); @@ -1186,7 +1179,11 @@ { if (lw->vd) vd_refresh(lw->vd); - if (lw->vf) vf_refresh(lw->vf); + if (lw->vf) + { + vf_refresh(lw->vf); + vf_thumb_update(lw->vf); + } } void layout_refresh(LayoutWindow *lw)