Introduce e_gdbus_templates_init_main_thread()
authorMilan Crha <mcrha@redhat.com>
Mon, 7 Nov 2011 09:23:07 +0000 (10:23 +0100)
committerMilan Crha <mcrha@redhat.com>
Mon, 7 Nov 2011 09:23:07 +0000 (10:23 +0100)
commit0a0856e473e24c78117fe0851f08bae908c53c3e
tree0d3b8deadeb06e20b79f40cc709b8bd5d2a9243f
parent44104f99d91394e346da962b9eb553332dbc8ae0
Introduce e_gdbus_templates_init_main_thread()

This is required to properly distinguish between EGDbusTemplates'
sync calls from the main thread and from a dedicated thread, because
the check with g_main_context_is_owner (g_main_context_default ())
doesn't work when there is no main loop running. The call to
e_gdbus_templates_init_main_thread() is good to do, but it is not
mandatory.
libedataserver/Makefile.am
libedataserver/e-gdbus-templates.c
libedataserver/e-gdbus-templates.h
tests/libebook/client/client-test-utils.c
tests/libecal/client/client-test-utils.c
tests/libedataserverui/test-client-examine-auth.c