comparison src/layout_image.c @ 1701:2309e6150e8c

do not try to reload deleted image deleted image is replaced by the next one from the list, keep the old image displayed until the new one is set
author nadvornik
date Fri, 24 Jul 2009 12:56:54 +0000
parents bfe04f01de5e
children caf0e4b8319d
comparison
equal deleted inserted replaced
1700:bda2d599cc70 1701:2309e6150e8c
1877 if (new) 1877 if (new)
1878 { 1878 {
1879 layout_image_set_collection(lw, cd, new); 1879 layout_image_set_collection(lw, cd, new);
1880 return; 1880 return;
1881 } 1881 }
1882 } 1882 layout_image_set_fd(lw, NULL);
1883 1883 }
1884 layout_image_set_fd(lw, NULL); 1884
1885 /* the image will be set to the next image from the list soon,
1886 setting it to NULL here is not necessary*/
1885 } 1887 }
1886 } 1888 }
1887 1889
1888 1890
1889 void layout_image_notify_cb(FileData *fd, NotifyType type, gpointer data) 1891 void layout_image_notify_cb(FileData *fd, NotifyType type, gpointer data)