[gtk+/composite-templates] mountoperation: fix previous commit
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtk+/composite-templates] mountoperation: fix previous commit
- Date: Sat,  6 Oct 2012 17:01:25 +0000 (UTC)
commit fa668f5d79ade5f043032bea53767e9e02eac0d0
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]