[gtk+/xi2-for-master: 35/35] fix the defaultvalue test



commit 50d09ce13450e2ef9b17e045a4aa7ffe8b7ec6d6
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue May 25 14:07:50 2010 -0400

    fix the defaultvalue test

 gdk/gdkdisplay.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index de65dc6..d643294 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -286,7 +286,8 @@ gdk_display_dispose (GObject *object)
                                                  NULL);
     }
 
-  g_signal_handlers_disconnect_by_func (device_manager, device_removed_cb, object);
+  if (device_manager)
+    g_signal_handlers_disconnect_by_func (device_manager, device_removed_cb, object);
 
   G_OBJECT_CLASS (gdk_display_parent_class)->dispose (object);
 }



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