[gtk+] mountoperation: fix previous commit



commit 5addd8cbe6451c90ba7bbc7f7baff1741ec186ae
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Sep 18 13:48:07 2012 -0400

    mountoperation: fix previous commit
    
    We don't want to call this method if there's no shell agent.

 gtk/gtkmountoperation.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c
index 47b7ff2..ed9178a 100644
--- a/gtk/gtkmountoperation.c
+++ b/gtk/gtkmountoperation.c
@@ -202,7 +202,8 @@ gtk_mount_operation_init (GtkMountOperation *operation)
     g_clear_object (&operation->priv->handler);
   g_free (name_owner);
 
-  g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (operation->priv->handler), G_MAXINT);
+  if (operation->priv->handler)
+    g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (operation->priv->handler), G_MAXINT);
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]