Skip to content

Commit

Permalink
enabled color management in img-view
Browse files Browse the repository at this point in the history
patch by Omari Stephens
  • Loading branch information
nadvornik committed Jun 9, 2009
1 parent 0dbb46c commit c266b1d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -1093,9 +1093,9 @@ GdkPixbuf *image_get_pixbuf(ImageWindow *imd)
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)
Expand Down
4 changes: 4 additions & 0 deletions src/img-view.c
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,10 @@ static ViewWindow *real_view_window_new(FileData *fd, GList *list, CollectionDat
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);

Expand Down

0 comments on commit c266b1d

Please sign in to comment.