Mercurial > geeqie
diff src/layout.c @ 1363:d87deb05d59f
Enable 'Use profile from image' item of color management menu only if such profile information is available from image.
| author | zas_ |
|---|---|
| date | Sun, 01 Mar 2009 17:58:19 +0000 |
| parents | b3156b2ec4c5 |
| children | 249bf204004a |
line wrap: on
line diff
--- a/src/layout.c Sun Mar 01 17:13:14 2009 +0000 +++ b/src/layout.c Sun Mar 01 17:58:19 2009 +0000 @@ -444,7 +444,7 @@ item = menu_item_add_check(menu, _("Use profile from _image"), use_image, G_CALLBACK(layout_color_menu_use_image_cb), lw); - gtk_widget_set_sensitive(item, active); + gtk_widget_set_sensitive(item, image_profile == COLOR_PROFILE_MEM || (image_profile > COLOR_PROFILE_NONE && image_profile < COLOR_PROFILE_FILE)); for (i = COLOR_PROFILE_SRGB; i < COLOR_PROFILE_FILE; i++) {
