]> Pileus Git - ~andy/gtk/commitdiff
mountoperation: don't timeout proxied mount operation dialogs
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 18 Sep 2012 17:44:04 +0000 (13:44 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 18 Sep 2012 17:46:14 +0000 (13:46 -0400)
When we proxy mount operation dialogs to the Shell agent, don't use a
timeout for the remote calls, since we will be waiting on user
interaction.

gtk/gtkmountoperation.c

index fa61746b2fd75ff70e21377acdc02a405387574b..47b7ff22b39f2ac3e285044a75fa737300048983 100644 (file)
@@ -201,6 +201,8 @@ gtk_mount_operation_init (GtkMountOperation *operation)
   if (!name_owner)
     g_clear_object (&operation->priv->handler);
   g_free (name_owner);
+
+  g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (operation->priv->handler), G_MAXINT);
 }
 
 static void