ESourceRefresh: Handle "notify" signals from an idle callback.
authorMatthew Barnes <mbarnes@redhat.com>
Wed, 6 Jun 2012 17:15:08 +0000 (13:15 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Wed, 6 Jun 2012 17:15:08 +0000 (13:15 -0400)
commitc0c70edbb965d9a03f5d8b020e84820fe0dbb670
treeee385bb76203ddc4c98f48efbc34c5f47e84df36
parent41edd64ede0f0f219779464a2431a54169c93b7a
ESourceRefresh: Handle "notify" signals from an idle callback.

ESourceRefresh runs e_source_refresh_force_timeout() in response to its
ESource becoming enabled.  The problem is "GObject::notify" signals can
be emitted from any thread.

Schedule an idle callback on the ESource's GMainContext to call
e_source_refresh_force_timeout(), rather than calling it directly from
the "GObject::notify" signal handler.
libedataserver/e-source-refresh.c