Mercurial > pidgin
comparison plugins/docklet/docklet.c @ 12531:5d118a3207a9
[gaim-migrate @ 14844]
today's lesson, kids, is that va_args are not to be messed with, unless you
are actually going to use them
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 17 Dec 2005 19:25:36 +0000 |
parents | e0be7349161a |
children | e856f985a0b9 |
comparison
equal
deleted
inserted
replaced
12530:74f449e10d88 | 12531:5d118a3207a9 |
---|---|
263 { | 263 { |
264 /* TODO: confirm quit while pending */ | 264 /* TODO: confirm quit while pending */ |
265 } | 265 } |
266 | 266 |
267 static void | 267 static void |
268 docklet_update_status_cb(void *data, ...) | 268 docklet_update_status_cb(void *data) |
269 { | 269 { |
270 /* The odd function arguments allow this callback to be used for | |
271 * any signal which has a pointer as the first callback parameter. | |
272 * Although ugly, it allows this single callback to be used instead | |
273 * of multiple functions with different signatures that do the same | |
274 * thing. | |
275 */ | |
276 docklet_update_status(); | 270 docklet_update_status(); |
277 } | 271 } |
278 | 272 |
279 static void | 273 static void |
280 docklet_prefs_cb(const char *name, GaimPrefType type, | 274 docklet_prefs_cb(const char *name, GaimPrefType type, |