[gnome-control-center] user-accounts: Set high DBus timeouts for managing realms
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] user-accounts: Set high DBus timeouts for managing realms
- Date: Thu, 14 Jun 2012 09:47:41 +0000 (UTC)
commit 4a76728978cc36f131db09d71ab62121196eca25
Author: Stef Walter <stefw gnome org>
Date: Tue Jun 12 17:17:46 2012 +0200
user-accounts: Set high DBus timeouts for managing realms
Enrolling the machine, or discovering realms can take a long
time. We don't want DBus timeouts.
https://bugzilla.gnome.org/show_bug.cgi?id=677953
panels/user-accounts/um-realm-manager.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/panels/user-accounts/um-realm-manager.c b/panels/user-accounts/um-realm-manager.c
index 6e73c86..f4f9740 100644
--- a/panels/user-accounts/um-realm-manager.c
+++ b/panels/user-accounts/um-realm-manager.c
@@ -104,6 +104,7 @@ on_realm_proxy_created (GObject *source,
/* Add it to the manager, unless race */
have = g_hash_table_lookup (self->realms, info);
if (have == NULL) {
+ g_dbus_proxy_set_default_timeout (proxy, G_MAXINT);
g_hash_table_insert (self->realms,
g_variant_ref_sink (info), realm);
g_signal_emit (self, signals[REALM_ADDED], 0, realm);
@@ -344,6 +345,7 @@ um_realm_manager_new (GCancellable *cancellable,
"g-bus-type", G_BUS_TYPE_SYSTEM,
"g-object-path", "/org/freedesktop/realmd",
"g-interface-name", "org.freedesktop.realmd.Provider",
+ "g-default-timeout", G_MAXINT,
NULL);
g_object_unref (async);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]