return the hostname instead of NULL.
2006-08-24 Michael Natterer <mitch@imendio.com> * gdk/quartz/gdkdisplay-quartz.c (gdk_display_get_name): return the hostname instead of NULL.
This commit is contained in:
committed by
Michael Natterer
parent
bbdff62bd3
commit
4773f80c48
@ -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 */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user