Mercurial > pidgin
comparison libpurple/eventloop.c @ 20453:69febfa6d307
propagate from branch 'im.pidgin.pidgin' (head d3e5a5add3f39caa08b46c83177328e51c2d961a)
to branch 'im.pidgin.cpw.khc.msnp14' (head a8f6c999b039b4097aa70cd8d2597f3127615435)
| author | Carlos Silva <typ0@pidgin.im> |
|---|---|
| date | Sat, 16 Jun 2007 04:00:32 +0000 |
| parents | f22986db6e70 |
| children | 57d350900136 |
comparison
equal
deleted
inserted
replaced
| 20452:5c34a0a3c362 | 20453:69febfa6d307 |
|---|---|
| 31 purple_timeout_add(guint interval, GSourceFunc function, gpointer data) | 31 purple_timeout_add(guint interval, GSourceFunc function, gpointer data) |
| 32 { | 32 { |
| 33 PurpleEventLoopUiOps *ops = purple_eventloop_get_ui_ops(); | 33 PurpleEventLoopUiOps *ops = purple_eventloop_get_ui_ops(); |
| 34 | 34 |
| 35 return ops->timeout_add(interval, function, data); | 35 return ops->timeout_add(interval, function, data); |
| 36 } | |
| 37 | |
| 38 guint | |
| 39 purple_timeout_add_seconds(guint interval, GSourceFunc function, gpointer data) | |
| 40 { | |
| 41 PurpleEventLoopUiOps *ops = purple_eventloop_get_ui_ops(); | |
| 42 | |
| 43 if (ops->timeout_add_seconds) | |
| 44 return ops->timeout_add_seconds(interval, function, data); | |
| 45 else | |
| 46 return ops->timeout_add(1000 * interval, function, data); | |
| 36 } | 47 } |
| 37 | 48 |
| 38 gboolean | 49 gboolean |
| 39 purple_timeout_remove(guint tag) | 50 purple_timeout_remove(guint tag) |
| 40 { | 51 { |
