Lines Matching refs:source
136 GSource *source,
140 GSourceFunc closure_callback = source->source_funcs->closure_callback;
144 if (source->source_funcs == &g_io_watch_funcs)
146 else if (source->source_funcs == &g_timeout_funcs ||
147 source->source_funcs == &g_idle_funcs)
163 * @source: the source
166 * Set the callback for a source as a #GClosure.
168 * If the source is not one of the standard GLib types, the @closure_callback
173 g_source_set_closure (GSource *source,
176 g_return_if_fail (source != NULL);
179 if (!source->source_funcs->closure_callback &&
180 source->source_funcs != &g_io_watch_funcs &&
181 source->source_funcs != &g_timeout_funcs &&
182 source->source_funcs != &g_idle_funcs)
190 g_source_set_callback_indirect (source, closure, &closure_callback_funcs);
194 GClosureMarshal marshal = (GClosureMarshal)source->source_funcs->closure_marshal;
197 if (source->source_funcs == &g_idle_funcs ||
198 source->source_funcs == &g_timeout_funcs)
200 else if (source->source_funcs == &g_io_watch_funcs)