summaryrefslogtreecommitdiff
path: root/bus
diff options
context:
space:
mode:
authorfujiwarat <takao.fujiwara1@gmail.com>2013-10-02 10:58:36 +0900
committerfujiwarat <takao.fujiwara1@gmail.com>2013-10-02 10:58:36 +0900
commit9596aea2e2df4cd3ac9b795ad9f354723cf83317 (patch)
treecbba4ad44d122a21fd21b632e45c699d908572d0 /bus
parentb8f36164d9b405d95bdcb76e38daca6c531e7da5 (diff)
Always save the content-type cache for gnome-shell password.
GDBusProxy updates the cache immediatelly with the first call only and has to save the next call in the cache by manual. BUG=RH#1013948 TEST=password on gnome-shell 3.10. Review URL: https://codereview.appspot.com/14196043
Diffstat (limited to 'bus')
-rw-r--r--bus/engineproxy.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bus/engineproxy.c b/bus/engineproxy.c
index 19c28616..efd95867 100644
--- a/bus/engineproxy.c
+++ b/bus/engineproxy.c
@@ -1159,6 +1159,11 @@ bus_engine_proxy_set_content_type (BusEngineProxy *engine,
NULL,
NULL,
NULL);
+
+ /* Need to update the cache by manual since there is a timing issue. */
+ g_dbus_proxy_set_cached_property ((GDBusProxy *) engine,
+ "ContentType",
+ content_type);
}
if (cached_content_type != NULL)