comparison src/view_file_icon.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 2c25cb0eca57
comparison
equal deleted inserted replaced
1505:2a99cf2184b0 1506:d352a44545a6
152 152
153 static void vficon_toggle_filenames(ViewFile *vf); 153 static void vficon_toggle_filenames(ViewFile *vf);
154 static void vficon_selection_remove(ViewFile *vf, IconData *id, SelectionType mask, GtkTreeIter *iter); 154 static void vficon_selection_remove(ViewFile *vf, IconData *id, SelectionType mask, GtkTreeIter *iter);
155 static void vficon_move_focus(ViewFile *vf, gint row, gint col, gboolean relative); 155 static void vficon_move_focus(ViewFile *vf, gint row, gint col, gboolean relative);
156 static void vficon_set_focus(ViewFile *vf, IconData *id); 156 static void vficon_set_focus(ViewFile *vf, IconData *id);
157 static void vficon_thumb_update(ViewFile *vf);
158 static void vficon_populate_at_new_size(ViewFile *vf, gint w, gint h, gboolean force); 157 static void vficon_populate_at_new_size(ViewFile *vf, gint w, gint h, gboolean force);
159 158
160 159
161 /* 160 /*
162 *----------------------------------------------------------------------------- 161 *-----------------------------------------------------------------------------
2028 } 2027 }
2029 2028
2030 return FALSE; 2029 return FALSE;
2031 } 2030 }
2032 2031
2033 static void vficon_thumb_update(ViewFile *vf) 2032 void vficon_thumb_update(ViewFile *vf)
2034 { 2033 {
2035 vficon_thumb_stop(vf); 2034 vficon_thumb_stop(vf);
2036 2035
2037 vficon_thumb_status(vf, 0.0, _("Loading thumbs...")); 2036 vficon_thumb_status(vf, 0.0, _("Loading thumbs..."));
2038 vf->thumbs_running = TRUE; 2037 vf->thumbs_running = TRUE;
2038
2039 if (thumb_format_changed)
2040 {
2041 GList *work = vf->list;
2042 while (work)
2043 {
2044 IconData *id = work->data;
2045 FileData *fd = id->fd;
2046 if (fd->thumb_pixbuf)
2047 {
2048 g_object_unref(fd->thumb_pixbuf);
2049 fd->thumb_pixbuf = NULL;
2050 }
2051 work = work->next;
2052 }
2053
2054 thumb_format_changed = FALSE;
2055 }
2039 2056
2040 while (vficon_thumb_next(vf)); 2057 while (vficon_thumb_next(vf));
2041 } 2058 }
2042 2059
2043 /* 2060 /*