[Telepathy] telepathy-glib: *_run_* methods.

Murray Cumming murrayc at murrayc.com
Tue Nov 18 02:08:07 PST 2008

It's been suggested that people should just never use the run functions
such as tp_cli_connection_run_request_handles(), because these are
really asynchronous operations.

However, these functions won't block the main mainloop, right. For
instance, they won't prevent a GTK+ application from responding to
button clicks. Or am I wrong?

And if you supply a secondary mainloop then you can cancel a run
function if some user input makes that necessary.

So the use of these functions really doesn't seem that awful. If you
really know that there's nothing else you need to do while waiting,
other than responding to user input, then they seem like a sensible way
to simplify your code.

The only problem I can see is that the run functions make it difficult
to make various requests to telepathy in parallel, but how common is


murrayc at murrayc.com

More information about the Telepathy mailing list