aboutsummaryrefslogtreecommitdiffstats
path: root/lib/events_glib.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-07-15 19:26:13 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-07-15 19:26:13 +0200
commit04026d44c29f2b7d64f81bb2d2d061a7d111662f (patch)
treebd4f55e783f4fa55ef9834d19cc60a6bf732bf9e /lib/events_glib.c
parent89a180978d3e5d81300b82923e8a208ee085d754 (diff)
Fixed a broken call to set_get() (CRASH), shut up a compiler warning in
events_glib and now using the right evaluator for acc->"auto_reconnect".
Diffstat (limited to 'lib/events_glib.c')
-rw-r--r--lib/events_glib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/events_glib.c b/lib/events_glib.c
index 620720cd..38938380 100644
--- a/lib/events_glib.c
+++ b/lib/events_glib.c
@@ -121,7 +121,10 @@ gint b_input_add(gint source, b_input_condition condition, b_event_handler funct
gint b_timeout_add(gint timeout, b_event_handler func, gpointer data)
{
- gint st = g_timeout_add(timeout, func, data);
+ /* GSourceFunc and the BitlBee event handler function aren't
+ really the same, but they're "compatible". ;-) It will do
+ for now, BitlBee only looks at the "data" argument. */
+ gint st = g_timeout_add(timeout, (GSourceFunc) func, data);
event_debug( "b_timeout_add( %d, %d, %d ) = %d\n", timeout, func, data, st );