atspi-gmain.c | atspi-gmain.c | |||
---|---|---|---|---|
skipping to change at line 353 | skipping to change at line 353 | |||
static void | static void | |||
connection_setup_add_timeout (ConnectionSetup *cs, | connection_setup_add_timeout (ConnectionSetup *cs, | |||
DBusTimeout *timeout) | DBusTimeout *timeout) | |||
{ | { | |||
TimeoutHandler *handler; | TimeoutHandler *handler; | |||
if (!dbus_timeout_get_enabled (timeout)) | if (!dbus_timeout_get_enabled (timeout)) | |||
return; | return; | |||
g_assert (dbus_timeout_get_data (timeout) == NULL); | ||||
handler = g_new0 (TimeoutHandler, 1); | handler = g_new0 (TimeoutHandler, 1); | |||
handler->cs = cs; | handler->cs = cs; | |||
handler->timeout = timeout; | handler->timeout = timeout; | |||
handler->source = g_timeout_source_new (dbus_timeout_get_interval (timeou t)); | handler->source = g_timeout_source_new (dbus_timeout_get_interval (timeou t)); | |||
g_source_set_callback (handler->source, timeout_handler_dispatch, handler , | g_source_set_callback (handler->source, timeout_handler_dispatch, handler , | |||
timeout_handler_source_finalized); | timeout_handler_source_finalized); | |||
g_source_attach (handler->source, handler->cs->context); | g_source_attach (handler->source, handler->cs->context); | |||
cs->timeouts = g_slist_prepend (cs->timeouts, handler); | cs->timeouts = g_slist_prepend (cs->timeouts, handler); | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 0 lines changed or added | |||