Mercurial > geeqie.yaz
diff src/image.c @ 1549:7302ff300a52
show color management status on statusbar
author | nadvornik |
---|---|
date | Mon, 13 Apr 2009 14:39:50 +0000 |
parents | b5608391f479 |
children | ffc44762e706 f1d22c2174c1 |
line wrap: on
line diff
--- a/src/image.c Mon Apr 13 10:55:49 2009 +0000 +++ b/src/image.c Mon Apr 13 14:39:50 2009 +0000 @@ -1480,11 +1480,15 @@ return imd->color_profile_enable; } -gint image_color_profile_get_from_image(ImageWindow *imd) +gboolean image_color_profile_get_status(ImageWindow *imd, gchar **image_profile, gchar **screen_profile) { - if (!imd) return COLOR_PROFILE_NONE; + ColorMan *cm; + if (!imd) return FALSE; + + cm = imd->cm; + if (!cm) return FALSE; + return color_man_get_status(cm, image_profile, screen_profile); - return imd->color_profile_from_image; } void image_set_delay_flip(ImageWindow *imd, gboolean delay)