Mercurial > geeqie.yaz
comparison src/cache-loader.h @ 1523:24a12aa0cb54
Fix up event source ids type: gint -> guint.
Functions like g_timeout_add() or g_idle_add() return a guint
greater than 0, but in most places it was wrongly stored as int
and initialized to -1.
This broke assertions matching in g_source_remove() for example
since id was always greater than 0 even when timer was not set
(-1 was casted to the biggest guint).
author | zas_ |
---|---|
date | Mon, 06 Apr 2009 22:13:54 +0000 |
parents | 3a9fb1b52559 |
children |
comparison
equal
deleted
inserted
replaced
1522:d7206703d90f | 1523:24a12aa0cb54 |
---|---|
43 gpointer done_data; | 43 gpointer done_data; |
44 | 44 |
45 gboolean error; | 45 gboolean error; |
46 | 46 |
47 ImageLoader *il; | 47 ImageLoader *il; |
48 gint idle_id; | 48 guint idle_id; /* event source id */ |
49 }; | 49 }; |
50 | 50 |
51 | 51 |
52 CacheLoader *cache_loader_new(FileData *fd, CacheDataType load_mask, | 52 CacheLoader *cache_loader_new(FileData *fd, CacheDataType load_mask, |
53 CacheLoaderDoneFunc done_func, gpointer done_data); | 53 CacheLoaderDoneFunc done_func, gpointer done_data); |