Mercurial > geeqie.yaz
diff src/layout_image.c @ 1549:7302ff300a52
show color management status on statusbar
author | nadvornik |
---|---|
date | Mon, 13 Apr 2009 14:39:50 +0000 |
parents | b5608391f479 |
children | 3d9f5c078521 f1d22c2174c1 |
line wrap: on
line diff
--- a/src/layout_image.c Mon Apr 13 10:55:49 2009 +0000 +++ b/src/layout_image.c Mon Apr 13 14:39:50 2009 +0000 @@ -1081,14 +1081,6 @@ if (!layout_valid(&lw)) return; image_color_profile_set_use(lw->image, enable); - -// if (lw->info_color) -// { -#ifndef HAVE_LCMS -// enable = FALSE; -#endif -// gtk_widget_set_sensitive(GTK_BIN(lw->info_color)->child, enable); -// } } gboolean layout_image_color_profile_get_use(LayoutWindow *lw) @@ -1098,11 +1090,11 @@ return image_color_profile_get_use(lw->image); } -gint layout_image_color_profile_get_from_image(LayoutWindow *lw) +gboolean layout_image_color_profile_get_status(LayoutWindow *lw, gchar **image_profile, gchar **screen_profile) { - if (!layout_valid(&lw)) return COLOR_PROFILE_NONE; + if (!layout_valid(&lw)) return FALSE; - return image_color_profile_get_from_image(lw->image); + return image_color_profile_get_status(lw->image, image_profile, screen_profile); } /*