summaryrefslogtreecommitdiff
path: root/gdk/quartz
diff options
context:
space:
mode:
Diffstat (limited to 'gdk/quartz')
-rw-r--r--gdk/quartz/gdkdisplay-quartz.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdk/quartz/gdkdisplay-quartz.c b/gdk/quartz/gdkdisplay-quartz.c
index fe15eb46c7..0fb75fcbf6 100644
--- a/gdk/quartz/gdkdisplay-quartz.c
+++ b/gdk/quartz/gdkdisplay-quartz.c
@@ -73,8 +73,12 @@ gdk_display_open (const gchar *display_name)
G_CONST_RETURN gchar *
gdk_display_get_name (GdkDisplay *display)
{
- /* FIXME: Implement */
- return NULL;
+ static gchar *display_name = NULL;
+
+ if (! display_name)
+ display_name = g_strdup ([[[NSHost currentHost] name] UTF8String]);
+
+ return display_name;
}
int
@@ -157,4 +161,3 @@ gdk_display_store_clipboard (GdkDisplay *display,
{
/* FIXME: Implement */
}
-