Commit 8075cfd6 authored by Matthias Clasen's avatar Matthias Clasen

Move gdk_get_display to common code

parent 6465e8dd
......@@ -1849,6 +1849,12 @@ gdk_display_get_name (GdkDisplay *display)
return GDK_DISPLAY_GET_CLASS(display)->get_name (display);
}
gchar *
gdk_get_display (void)
{
return g_strdup (gdk_display_get_name (gdk_display_get_default ()));
}
/**
* gdk_display_get_n_screens:
* @display: a #GdkDisplay
......
......@@ -61,12 +61,6 @@ gdk_error_trap_pop_ignored (void)
{
}
gchar *
gdk_get_display (void)
{
return g_strdup (gdk_display_get_name (gdk_display_get_default ()));
}
void
gdk_notify_startup_complete (void)
{
......
......@@ -197,12 +197,6 @@ _gdk_windowing_exit (void)
_gdk_display_hdc = NULL;
}
gchar *
gdk_get_display (void)
{
return g_strdup (gdk_display_get_name (gdk_display_get_default ()));
}
void
gdk_error_trap_push (void)
{
......
......@@ -545,12 +545,6 @@ gdk_error_trap_pop (void)
return gdk_error_trap_pop_internal (TRUE);
}
gchar *
gdk_get_display (void)
{
return g_strdup (gdk_display_get_name (gdk_display_get_default ()));
}
/**
* _gdk_send_xevent:
* @display: #GdkDisplay which @window is on
......
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