[gtk+] GdkDisplayManager: register Quartz backend when applicable



commit e5695de12b694e901237e88a6873f93fa32b0ae9
Author: Kristian Rietveld <kris gtk org>
Date:   Wed Dec 22 16:14:09 2010 +0100

    GdkDisplayManager: register Quartz backend when applicable

 gdk/gdkdisplaymanager.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkdisplaymanager.c b/gdk/gdkdisplaymanager.c
index 829083a..3975bbc 100644
--- a/gdk/gdkdisplaymanager.c
+++ b/gdk/gdkdisplaymanager.c
@@ -36,6 +36,10 @@
 #include "x11/gdkx.h"
 #endif
 
+#ifdef GDK_WINDOWING_QUARTZ
+#include "quartz/gdkdisplaymanager-quartz.h"
+#endif
+
 
 /**
  * SECTION:gdkdisplaymanager
@@ -182,6 +186,11 @@ gdk_display_manager_get (void)
         manager = g_object_new (gdk_x11_display_manager_get_type (), NULL);
       else
 #endif
+#ifdef GDK_WINDOWING_QUARTZ
+      if (backend == NULL || strcmp (backend, "quartz") == 0)
+        manager = g_object_new (gdk_quartz_display_manager_get_type (), NULL);
+      else
+#endif
       if (backend != NULL)
         g_error ("Unsupported GDK backend: %s", backend);
       else



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