Mercurial > geeqie
comparison 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 |
comparison
equal
deleted
inserted
replaced
1522:d7206703d90f | 1523:24a12aa0cb54 |
---|---|
112 GList *tiles; /* list of buffer tiles */ | 112 GList *tiles; /* list of buffer tiles */ |
113 gint tile_cache_size; /* allocated size of pixmaps/pixbufs */ | 113 gint tile_cache_size; /* allocated size of pixmaps/pixbufs */ |
114 GList *draw_queue; /* list of areas to redraw */ | 114 GList *draw_queue; /* list of areas to redraw */ |
115 GList *draw_queue_2pass;/* list when 2 pass is enabled */ | 115 GList *draw_queue_2pass;/* list when 2 pass is enabled */ |
116 | 116 |
117 gint draw_idle_id; | 117 guint draw_idle_id; /* event source id */ |
118 | 118 |
119 gboolean in_drag; | 119 gboolean in_drag; |
120 gint drag_last_x; | 120 gint drag_last_x; |
121 gint drag_last_y; | 121 gint drag_last_y; |
122 gint drag_moved; | 122 gint drag_moved; |
140 gboolean delay_flip; | 140 gboolean delay_flip; |
141 gboolean loading; | 141 gboolean loading; |
142 gboolean complete; | 142 gboolean complete; |
143 gboolean debug_updated; /* debug only */ | 143 gboolean debug_updated; /* debug only */ |
144 | 144 |
145 gint scroller_id; | 145 guint scroller_id; /* event source id */ |
146 gint scroller_overlay; | 146 gint scroller_overlay; |
147 gint scroller_x; | 147 gint scroller_x; |
148 gint scroller_y; | 148 gint scroller_y; |
149 gint scroller_xpos; | 149 gint scroller_xpos; |
150 gint scroller_ypos; | 150 gint scroller_ypos; |