Move gdk_get_display to common code

This commit is contained in:
Matthias Clasen 2010-12-08 23:48:00 -05:00
parent 6465e8dd15
commit 8075cfd658
4 changed files with 6 additions and 18 deletions

View File

@ -1849,6 +1849,12 @@ gdk_display_get_name (GdkDisplay *display)
return GDK_DISPLAY_GET_CLASS(display)->get_name (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: * gdk_display_get_n_screens:
* @display: a #GdkDisplay * @display: a #GdkDisplay

View File

@ -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 void
gdk_notify_startup_complete (void) gdk_notify_startup_complete (void)
{ {

View File

@ -197,12 +197,6 @@ _gdk_windowing_exit (void)
_gdk_display_hdc = NULL; _gdk_display_hdc = NULL;
} }
gchar *
gdk_get_display (void)
{
return g_strdup (gdk_display_get_name (gdk_display_get_default ()));
}
void void
gdk_error_trap_push (void) gdk_error_trap_push (void)
{ {

View File

@ -545,12 +545,6 @@ gdk_error_trap_pop (void)
return gdk_error_trap_pop_internal (TRUE); 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: * _gdk_send_xevent:
* @display: #GdkDisplay which @window is on * @display: #GdkDisplay which @window is on