comparison src/thumb.c @ 1446:a6f9ba6fd751

gint -> gboolean.
author zas_
date Sun, 15 Mar 2009 18:06:41 +0000
parents cf4029d10d38
children 5f49f305a6b6
comparison
equal deleted inserted replaced
1445:cb0040be832e 1446:a6f9ba6fd751
244 thumb_loader_set_fallback(tl); 244 thumb_loader_set_fallback(tl);
245 245
246 if (tl->func_error) tl->func_error(tl, tl->data); 246 if (tl->func_error) tl->func_error(tl, tl->data);
247 } 247 }
248 248
249 static gint thumb_loader_done_delay_cb(gpointer data) 249 static gboolean thumb_loader_done_delay_cb(gpointer data)
250 { 250 {
251 ThumbLoader *tl = data; 251 ThumbLoader *tl = data;
252 252
253 tl->idle_done_id = -1; 253 tl->idle_done_id = -1;
254 254
303 tl->func_progress = func_progress; 303 tl->func_progress = func_progress;
304 304
305 tl->data = data; 305 tl->data = data;
306 } 306 }
307 307
308 void thumb_loader_set_cache(ThumbLoader *tl, gint enable_cache, gint local, gint retry_failed) 308 void thumb_loader_set_cache(ThumbLoader *tl, gboolean enable_cache, gboolean local, gboolean retry_failed)
309 { 309 {
310 if (!tl) return; 310 if (!tl) return;
311 311
312 if (tl->standard_loader) 312 if (tl->standard_loader)
313 { 313 {
321 tl->cache_retry = retry_failed; 321 tl->cache_retry = retry_failed;
322 #endif 322 #endif
323 } 323 }
324 324
325 325
326 gint thumb_loader_start(ThumbLoader *tl, FileData *fd) 326 gboolean thumb_loader_start(ThumbLoader *tl, FileData *fd)
327 { 327 {
328 gchar *cache_path = NULL; 328 gchar *cache_path = NULL;
329 329
330 if (!tl) return FALSE; 330 if (!tl) return FALSE;
331 331