# HG changeset patch # User nadvornik # Date 1244574757 0 # Node ID 36a04d4bed60ec4f2d071e4463c95182bc7e866a # Parent 511c979c2e7c7024a6e2f053b9fca0b9a6ef0ee7 enabled color management in img-view patch by Omari Stephens diff -r 511c979c2e7c -r 36a04d4bed60 src/image.c --- a/src/image.c Tue Jun 09 19:08:52 2009 +0000 +++ b/src/image.c Tue Jun 09 19:12:37 2009 +0000 @@ -1093,9 +1093,9 @@ void image_change_pixbuf(ImageWindow *imd, GdkPixbuf *pixbuf, gdouble zoom, gboolean lazy) { - - /* read_exif and similar functions can actually notice that the file has changed and triger a notification - that removes the pixbuf from cache and unref it. Therefore we must ref it here before it is taken over by the renderer. */ + /* read_exif and similar functions can actually notice that the file has changed and trigger + a notification that removes the pixbuf from cache and unrefs it. Therefore we must ref it + here before it is taken over by the renderer. */ if (pixbuf) g_object_ref(pixbuf); if (imd->image_fd) diff -r 511c979c2e7c -r 36a04d4bed60 src/img-view.c --- a/src/img-view.c Tue Jun 09 19:08:52 2009 +0000 +++ b/src/img-view.c Tue Jun 09 19:12:37 2009 +0000 @@ -847,6 +847,10 @@ gtk_container_set_border_width(GTK_CONTAINER(vw->window), 0); vw->imd = image_new(FALSE); + image_color_profile_set(vw->imd, + options->color_profile.input_type, + options->color_profile.use_image); + image_color_profile_set_use(vw->imd, options->color_profile.enabled); image_background_set_color_from_options(vw->imd, FALSE);