Mercurial > geeqie.yaz
comparison src/similar.c @ 1420:3a9fb1b52559
Use gboolean where applicable, for the sake of consistency.
author | zas_ |
---|---|
date | Thu, 12 Mar 2009 21:06:37 +0000 |
parents | 8b89e3ff286b |
children | a6f9ba6fd751 |
comparison
equal
deleted
inserted
replaced
1419:c520cfd40aef | 1420:3a9fb1b52559 |
---|---|
42 /* | 42 /* |
43 * The experimental (alternate) algorithm is only for testing of new techniques to | 43 * The experimental (alternate) algorithm is only for testing of new techniques to |
44 * improve the result, and hopes to reduce false positives. | 44 * improve the result, and hopes to reduce false positives. |
45 */ | 45 */ |
46 | 46 |
47 static gint alternate_enabled = FALSE; | 47 static gboolean alternate_enabled = FALSE; |
48 | 48 |
49 void image_sim_alternate_set(gint enable) | 49 void image_sim_alternate_set(gboolean enable) |
50 { | 50 { |
51 alternate_enabled = enable; | 51 alternate_enabled = enable; |
52 } | 52 } |
53 | 53 |
54 gint image_sim_alternate_enabled(void) | 54 gboolean image_sim_alternate_enabled(void) |
55 { | 55 { |
56 return alternate_enabled; | 56 return alternate_enabled; |
57 } | 57 } |
58 | 58 |
59 ImageSimilarityData *image_sim_new(void) | 59 ImageSimilarityData *image_sim_new(void) |
181 gint i; | 181 gint i; |
182 gint j; | 182 gint j; |
183 gint x_inc, y_inc, xy_inc; | 183 gint x_inc, y_inc, xy_inc; |
184 gint xs, ys; | 184 gint xs, ys; |
185 | 185 |
186 gint x_small = FALSE; /* if less than 32 w or h, set TRUE */ | 186 gboolean x_small = FALSE; /* if less than 32 w or h, set TRUE */ |
187 gint y_small = FALSE; | 187 gboolean y_small = FALSE; |
188 | 188 |
189 if (!sd || !pixbuf) return; | 189 if (!sd || !pixbuf) return; |
190 | 190 |
191 w = gdk_pixbuf_get_width(pixbuf); | 191 w = gdk_pixbuf_get_width(pixbuf); |
192 h = gdk_pixbuf_get_height(pixbuf); | 192 h = gdk_pixbuf_get_height(pixbuf); |