Mercurial > geeqie
diff src/pixbuf-renderer.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 | 8355da717c68 |
children | 956aab097ea7 |
line wrap: on
line diff
--- a/src/pixbuf-renderer.h Mon Apr 06 21:52:49 2009 +0000 +++ b/src/pixbuf-renderer.h Mon Apr 06 22:13:54 2009 +0000 @@ -114,7 +114,7 @@ GList *draw_queue; /* list of areas to redraw */ GList *draw_queue_2pass;/* list when 2 pass is enabled */ - gint draw_idle_id; + guint draw_idle_id; /* event source id */ gboolean in_drag; gint drag_last_x; @@ -142,7 +142,7 @@ gboolean complete; gboolean debug_updated; /* debug only */ - gint scroller_id; + guint scroller_id; /* event source id */ gint scroller_overlay; gint scroller_x; gint scroller_y;