Commit e5695de1 authored by Kristian Rietveld's avatar Kristian Rietveld

GdkDisplayManager: register Quartz backend when applicable

parent 5226ae3e
...@@ -36,6 +36,10 @@ ...@@ -36,6 +36,10 @@
#include "x11/gdkx.h" #include "x11/gdkx.h"
#endif #endif
#ifdef GDK_WINDOWING_QUARTZ
#include "quartz/gdkdisplaymanager-quartz.h"
#endif
/** /**
* SECTION:gdkdisplaymanager * SECTION:gdkdisplaymanager
...@@ -181,6 +185,11 @@ gdk_display_manager_get (void) ...@@ -181,6 +185,11 @@ gdk_display_manager_get (void)
if (backend == NULL || strcmp (backend, "x11") == 0) if (backend == NULL || strcmp (backend, "x11") == 0)
manager = g_object_new (gdk_x11_display_manager_get_type (), NULL); manager = g_object_new (gdk_x11_display_manager_get_type (), NULL);
else 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 #endif
if (backend != NULL) if (backend != NULL)
g_error ("Unsupported GDK backend: %s", backend); g_error ("Unsupported GDK backend: %s", backend);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment