Mercurial > geeqie.yaz
comparison src/layout_image.c @ 1431:7e180091e0b7
More gboolean and tidy up.
author | zas_ |
---|---|
date | Sat, 14 Mar 2009 11:26:43 +0000 |
parents | a0bd58a6535f |
children | cf4029d10d38 |
comparison
equal
deleted
inserted
replaced
1430:7718e351bc45 | 1431:7e180091e0b7 |
---|---|
12 | 12 |
13 #include "main.h" | 13 #include "main.h" |
14 #include "layout_image.h" | 14 #include "layout_image.h" |
15 | 15 |
16 #include "collect.h" | 16 #include "collect.h" |
17 #include "color-man.h" | |
17 #include "dnd.h" | 18 #include "dnd.h" |
18 #include "editors.h" | 19 #include "editors.h" |
19 #include "filedata.h" | 20 #include "filedata.h" |
20 #include "fullscreen.h" | 21 #include "fullscreen.h" |
21 #include "image.h" | 22 #include "image.h" |
1060 image_reload(lw->image); | 1061 image_reload(lw->image); |
1061 } | 1062 } |
1062 | 1063 |
1063 void layout_image_color_profile_set(LayoutWindow *lw, | 1064 void layout_image_color_profile_set(LayoutWindow *lw, |
1064 gint input_type, gint screen_type, | 1065 gint input_type, gint screen_type, |
1065 gint use_image) | 1066 gboolean use_image) |
1066 { | 1067 { |
1067 if (!layout_valid(&lw)) return; | 1068 if (!layout_valid(&lw)) return; |
1068 | 1069 |
1069 image_color_profile_set(lw->image, input_type, screen_type, use_image); | 1070 image_color_profile_set(lw->image, input_type, screen_type, use_image); |
1070 } | 1071 } |
1071 | 1072 |
1072 gint layout_image_color_profile_get(LayoutWindow *lw, | 1073 gboolean layout_image_color_profile_get(LayoutWindow *lw, |
1073 gint *input_type, gint *screen_type, | 1074 gint *input_type, gint *screen_type, |
1074 gint *use_image) | 1075 gboolean *use_image) |
1075 { | 1076 { |
1076 if (!layout_valid(&lw)) return FALSE; | 1077 if (!layout_valid(&lw)) return FALSE; |
1077 | 1078 |
1078 return image_color_profile_get(lw->image, input_type, screen_type, use_image); | 1079 return image_color_profile_get(lw->image, input_type, screen_type, use_image); |
1079 } | 1080 } |
1080 | 1081 |
1081 void layout_image_color_profile_set_use(LayoutWindow *lw, gint enable) | 1082 void layout_image_color_profile_set_use(LayoutWindow *lw, gboolean enable) |
1082 { | 1083 { |
1083 if (!layout_valid(&lw)) return; | 1084 if (!layout_valid(&lw)) return; |
1084 | 1085 |
1085 image_color_profile_set_use(lw->image, enable); | 1086 image_color_profile_set_use(lw->image, enable); |
1086 | 1087 |
1091 #endif | 1092 #endif |
1092 gtk_widget_set_sensitive(GTK_BIN(lw->info_color)->child, enable); | 1093 gtk_widget_set_sensitive(GTK_BIN(lw->info_color)->child, enable); |
1093 } | 1094 } |
1094 } | 1095 } |
1095 | 1096 |
1096 gint layout_image_color_profile_get_use(LayoutWindow *lw) | 1097 gboolean layout_image_color_profile_get_use(LayoutWindow *lw) |
1097 { | 1098 { |
1098 if (!layout_valid(&lw)) return FALSE; | 1099 if (!layout_valid(&lw)) return FALSE; |
1099 | 1100 |
1100 return image_color_profile_get_use(lw->image); | 1101 return image_color_profile_get_use(lw->image); |
1101 } | 1102 } |
1102 | 1103 |
1103 gint layout_image_color_profile_get_from_image(LayoutWindow *lw) | 1104 gint layout_image_color_profile_get_from_image(LayoutWindow *lw) |
1104 { | 1105 { |
1105 if (!layout_valid(&lw)) return FALSE; | 1106 if (!layout_valid(&lw)) return COLOR_PROFILE_NONE; |
1106 | 1107 |
1107 return image_color_profile_get_from_image(lw->image); | 1108 return image_color_profile_get_from_image(lw->image); |
1108 } | 1109 } |
1109 | 1110 |
1110 /* | 1111 /* |