mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
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:
parent
bbdff62bd3
commit
4773f80c48
@ -1,3 +1,8 @@
|
||||
2006-08-24 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
* gdk/quartz/gdkdisplay-quartz.c (gdk_display_get_name): return
|
||||
the hostname instead of NULL.
|
||||
|
||||
2006-08-23 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkprinteroptionwidget.[hc]: Fix confusion about
|
||||
|
@ -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 */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user