Mercurial > geeqie.yaz
comparison src/layout_image.c @ 1548:b5608391f479
support X11 screen profile
http://freedesktop.org/wiki/ICC_Profiles_in_X_Specification_0.3
author | nadvornik |
---|---|
date | Mon, 13 Apr 2009 10:55:49 +0000 |
parents | 2a3efbdf73b0 |
children | 7302ff300a52 c3416996fd97 |
comparison
equal
deleted
inserted
replaced
1547:2a3efbdf73b0 | 1548:b5608391f479 |
---|---|
1057 | 1057 |
1058 image_reload(lw->image); | 1058 image_reload(lw->image); |
1059 } | 1059 } |
1060 | 1060 |
1061 void layout_image_color_profile_set(LayoutWindow *lw, | 1061 void layout_image_color_profile_set(LayoutWindow *lw, |
1062 gint input_type, gint screen_type, | 1062 gint input_type, |
1063 gboolean use_image) | 1063 gboolean use_image) |
1064 { | 1064 { |
1065 if (!layout_valid(&lw)) return; | 1065 if (!layout_valid(&lw)) return; |
1066 | 1066 |
1067 image_color_profile_set(lw->image, input_type, screen_type, use_image); | 1067 image_color_profile_set(lw->image, input_type, use_image); |
1068 } | 1068 } |
1069 | 1069 |
1070 gboolean layout_image_color_profile_get(LayoutWindow *lw, | 1070 gboolean layout_image_color_profile_get(LayoutWindow *lw, |
1071 gint *input_type, gint *screen_type, | 1071 gint *input_type, |
1072 gboolean *use_image) | 1072 gboolean *use_image) |
1073 { | 1073 { |
1074 if (!layout_valid(&lw)) return FALSE; | 1074 if (!layout_valid(&lw)) return FALSE; |
1075 | 1075 |
1076 return image_color_profile_get(lw->image, input_type, screen_type, use_image); | 1076 return image_color_profile_get(lw->image, input_type, use_image); |
1077 } | 1077 } |
1078 | 1078 |
1079 void layout_image_color_profile_set_use(LayoutWindow *lw, gboolean enable) | 1079 void layout_image_color_profile_set_use(LayoutWindow *lw, gboolean enable) |
1080 { | 1080 { |
1081 if (!layout_valid(&lw)) return; | 1081 if (!layout_valid(&lw)) return; |
1605 image_auto_refresh_enable(lw->split_images[i], TRUE); | 1605 image_auto_refresh_enable(lw->split_images[i], TRUE); |
1606 | 1606 |
1607 layout_image_dnd_init(lw, i); | 1607 layout_image_dnd_init(lw, i); |
1608 image_color_profile_set(lw->split_images[i], | 1608 image_color_profile_set(lw->split_images[i], |
1609 options->color_profile.input_type, | 1609 options->color_profile.input_type, |
1610 options->color_profile.screen_type, | |
1611 options->color_profile.use_image); | 1610 options->color_profile.use_image); |
1612 image_color_profile_set_use(lw->split_images[i], options->color_profile.enabled); | 1611 image_color_profile_set_use(lw->split_images[i], options->color_profile.enabled); |
1613 | 1612 |
1614 gtk_size_group_add_widget(lw->split_image_sizegroup, lw->split_images[i]->widget); | 1613 gtk_size_group_add_widget(lw->split_image_sizegroup, lw->split_images[i]->widget); |
1615 gtk_widget_set_size_request(lw->split_images[i]->widget, IMAGE_MIN_WIDTH, -1); | 1614 gtk_widget_set_size_request(lw->split_images[i]->widget, IMAGE_MIN_WIDTH, -1); |