Mercurial > geeqie.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
1362:b3156b2ec4c5 | 1363:d87deb05d59f |
---|---|
442 | 442 |
443 menu_item_add_divider(menu); | 443 menu_item_add_divider(menu); |
444 | 444 |
445 item = menu_item_add_check(menu, _("Use profile from _image"), use_image, | 445 item = menu_item_add_check(menu, _("Use profile from _image"), use_image, |
446 G_CALLBACK(layout_color_menu_use_image_cb), lw); | 446 G_CALLBACK(layout_color_menu_use_image_cb), lw); |
447 gtk_widget_set_sensitive(item, active); | 447 gtk_widget_set_sensitive(item, image_profile == COLOR_PROFILE_MEM || (image_profile > COLOR_PROFILE_NONE && image_profile < COLOR_PROFILE_FILE)); |
448 | 448 |
449 for (i = COLOR_PROFILE_SRGB; i < COLOR_PROFILE_FILE; i++) | 449 for (i = COLOR_PROFILE_SRGB; i < COLOR_PROFILE_FILE; i++) |
450 { | 450 { |
451 const gchar *label; | 451 const gchar *label; |
452 | 452 |