comparison src/image.c @ 1635:b4199094b0db

enabled color management in img-view patch by Omari Stephens
author nadvornik
date Tue, 09 Jun 2009 19:12:37 +0000
parents fee96b7345e8
children 56115e934133
comparison
equal deleted inserted replaced
1634:9b692bdb4b9f 1635:b4199094b0db
1061 } 1061 }
1062 1062
1063 void image_change_pixbuf(ImageWindow *imd, GdkPixbuf *pixbuf, gdouble zoom, gboolean lazy) 1063 void image_change_pixbuf(ImageWindow *imd, GdkPixbuf *pixbuf, gdouble zoom, gboolean lazy)
1064 { 1064 {
1065 1065
1066 1066 /* read_exif and similar functions can actually notice that the file has changed and trigger
1067 /* read_exif and similar functions can actually notice that the file has changed and triger a notification 1067 a notification that removes the pixbuf from cache and unrefs it. Therefore we must ref it
1068 that removes the pixbuf from cache and unref it. Therefore we must ref it here before it is taken over by the renderer. */ 1068 here before it is taken over by the renderer. */
1069 if (pixbuf) g_object_ref(pixbuf); 1069 if (pixbuf) g_object_ref(pixbuf);
1070 1070
1071 if (imd->image_fd) 1071 if (imd->image_fd)
1072 { 1072 {
1073 if (imd->image_fd->user_orientation) 1073 if (imd->image_fd->user_orientation)