comparison src/pan-types.h @ 1434:b106af9689db

More gboolean.
author zas_
date Sat, 14 Mar 2009 20:07:23 +0000
parents a0bd58a6535f
children 24a12aa0cb54
comparison
equal deleted inserted replaced
1433:b4ad1d201279 1434:b106af9689db
163 guint8 color2_a; 163 guint8 color2_a;
164 gint border; 164 gint border;
165 165
166 gpointer data; 166 gpointer data;
167 167
168 gint queued; 168 gboolean queued;
169 }; 169 };
170 170
171 typedef struct _PanWindow PanWindow; 171 typedef struct _PanWindow PanWindow;
172 struct _PanWindow 172 struct _PanWindow
173 { 173 {
198 PanLayoutType layout; 198 PanLayoutType layout;
199 PanImageSize size; 199 PanImageSize size;
200 gint thumb_size; 200 gint thumb_size;
201 gint thumb_gap; 201 gint thumb_gap;
202 gint image_size; 202 gint image_size;
203 gint exif_date_enable; 203 gboolean exif_date_enable;
204 204
205 gint info_image_size; 205 gint info_image_size;
206 gint info_includes_exif; 206 gboolean info_includes_exif;
207 207
208 gint ignore_symlinks; 208 gboolean ignore_symlinks;
209 209
210 GList *list; 210 GList *list;
211 GList *list_static; 211 GList *list_static;
212 GList *list_grid; 212 GList *list_grid;
213 213
253 GList *pan_layout_intersect(PanWindow *pw, gint x, gint y, gint width, gint height); 253 GList *pan_layout_intersect(PanWindow *pw, gint x, gint y, gint width, gint height);
254 void pan_layout_resize(PanWindow *pw); 254 void pan_layout_resize(PanWindow *pw);
255 255
256 void pan_cache_sync_date(PanWindow *pw, GList *list); 256 void pan_cache_sync_date(PanWindow *pw, GList *list);
257 257
258 GList *pan_cache_sort(GList *list, SortType method, gint ascend); 258 GList *pan_cache_sort(GList *list, SortType method, gboolean ascend);
259 /* pan-item.c */ 259 /* pan-item.c */
260 260
261 void pan_item_free(PanItem *pi); 261 void pan_item_free(PanItem *pi);
262 262
263 void pan_item_set_key(PanItem *pi, const gchar *key); 263 void pan_item_set_key(PanItem *pi, const gchar *key);
268 void pan_item_size_coordinates(PanItem *pi, gint border, gint *w, gint *h); 268 void pan_item_size_coordinates(PanItem *pi, gint border, gint *w, gint *h);
269 269
270 270
271 PanItem *pan_item_find_by_key(PanWindow *pw, PanItemType type, const gchar *key); 271 PanItem *pan_item_find_by_key(PanWindow *pw, PanItemType type, const gchar *key);
272 GList *pan_item_find_by_path(PanWindow *pw, PanItemType type, const gchar *path, 272 GList *pan_item_find_by_path(PanWindow *pw, PanItemType type, const gchar *path,
273 gint ignore_case, gint partial); 273 gboolean ignore_case, gboolean partial);
274 GList *pan_item_find_by_fd(PanWindow *pw, PanItemType type, FileData *fd, 274 GList *pan_item_find_by_fd(PanWindow *pw, PanItemType type, FileData *fd,
275 gint ignore_case, gint partial); 275 gboolean ignore_case, gboolean partial);
276 PanItem *pan_item_find_by_coord(PanWindow *pw, PanItemType type, 276 PanItem *pan_item_find_by_coord(PanWindow *pw, PanItemType type,
277 gint x, gint y, const gchar *key); 277 gint x, gint y, const gchar *key);
278 278
279 279
280 PanItem *pan_item_box_new(PanWindow *pw, FileData *fd, gint x, gint y, gint width, gint height, 280 PanItem *pan_item_box_new(PanWindow *pw, FileData *fd, gint x, gint y, gint width, gint height,
336 PAN_DATE_LENGTH_WEEK, 336 PAN_DATE_LENGTH_WEEK,
337 PAN_DATE_LENGTH_MONTH, 337 PAN_DATE_LENGTH_MONTH,
338 PAN_DATE_LENGTH_YEAR 338 PAN_DATE_LENGTH_YEAR
339 } PanDateLengthType; 339 } PanDateLengthType;
340 340
341 gint pan_date_compare(time_t a, time_t b, PanDateLengthType length); 341 gboolean pan_date_compare(time_t a, time_t b, PanDateLengthType length);
342 gint pan_date_value(time_t d, PanDateLengthType length); 342 gint pan_date_value(time_t d, PanDateLengthType length);
343 gchar *pan_date_value_string(time_t d, PanDateLengthType length); 343 gchar *pan_date_value_string(time_t d, PanDateLengthType length);
344 time_t pan_date_to_time(gint year, gint month, gint day); 344 time_t pan_date_to_time(gint year, gint month, gint day);
345 345
346 gint pan_is_link_loop(const gchar *s); 346 gboolean pan_is_link_loop(const gchar *s);
347 gint pan_is_ignored(const gchar *s, gint ignore_symlinks); 347 gboolean pan_is_ignored(const gchar *s, gboolean ignore_symlinks);
348 GList *pan_list_tree(FileData *dir_fd, SortType sort, gint ascend, 348 GList *pan_list_tree(FileData *dir_fd, SortType sort, gboolean ascend,
349 gint ignore_symlinks); 349 gboolean ignore_symlinks);
350 350
351 351
352 /* the different view types */ 352 /* the different view types */
353 353
354 void pan_calendar_update(PanWindow *pw, PanItem *pi_day); 354 void pan_calendar_update(PanWindow *pw, PanItem *pi_day);