forked from AuroraMiddleware/gtk
Drop gdk_display_get_default_screen
Also remove the backend implementations. This api is no longer used.
This commit is contained in:
parent
adfbc82202
commit
7f0b5297c6
@ -1155,24 +1155,6 @@ gdk_display_get_name (GdkDisplay *display)
|
||||
return GDK_DISPLAY_GET_CLASS (display)->get_name (display);
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_display_get_default_screen:
|
||||
* @display: a #GdkDisplay
|
||||
*
|
||||
* Get the default #GdkScreen for @display.
|
||||
*
|
||||
* Returns: (transfer none): the default #GdkScreen object for @display
|
||||
*
|
||||
* Since: 2.2
|
||||
*/
|
||||
GdkScreen *
|
||||
gdk_display_get_default_screen (GdkDisplay *display)
|
||||
{
|
||||
g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL);
|
||||
|
||||
return GDK_DISPLAY_GET_CLASS (display)->get_default_screen (display);
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_display_beep:
|
||||
* @display: a #GdkDisplay
|
||||
|
@ -47,9 +47,6 @@ GdkDisplay *gdk_display_open (const gchar *display_name);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
const gchar * gdk_display_get_name (GdkDisplay *display);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GdkScreen * gdk_display_get_default_screen (GdkDisplay *display);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gboolean gdk_display_device_is_grabbed (GdkDisplay *display,
|
||||
GdkDevice *device);
|
||||
|
@ -117,7 +117,6 @@ struct _GdkDisplayClass
|
||||
const char *vk_extension_name; /* Name of required windowing vulkan extension or %NULL (default) if Vulkan isn't supported */
|
||||
|
||||
const gchar * (*get_name) (GdkDisplay *display);
|
||||
GdkScreen * (*get_default_screen) (GdkDisplay *display);
|
||||
void (*beep) (GdkDisplay *display);
|
||||
void (*sync) (GdkDisplay *display);
|
||||
void (*flush) (GdkDisplay *display);
|
||||
|
@ -92,12 +92,6 @@ gdk_quartz_display_get_name (GdkDisplay *display)
|
||||
return display_name;
|
||||
}
|
||||
|
||||
static GdkScreen *
|
||||
gdk_quartz_display_get_default_screen (GdkDisplay *display)
|
||||
{
|
||||
return _gdk_screen;
|
||||
}
|
||||
|
||||
static void
|
||||
gdk_quartz_display_beep (GdkDisplay *display)
|
||||
{
|
||||
@ -266,7 +260,6 @@ gdk_quartz_display_class_init (GdkQuartzDisplayClass *class)
|
||||
display_class->window_type = GDK_TYPE_QUARTZ_WINDOW;
|
||||
|
||||
display_class->get_name = gdk_quartz_display_get_name;
|
||||
display_class->get_default_screen = gdk_quartz_display_get_default_screen;
|
||||
display_class->beep = gdk_quartz_display_beep;
|
||||
display_class->sync = gdk_quartz_display_sync;
|
||||
display_class->flush = gdk_quartz_display_flush;
|
||||
|
@ -701,14 +701,6 @@ gdk_wayland_display_get_name (GdkDisplay *display)
|
||||
return name;
|
||||
}
|
||||
|
||||
static GdkScreen *
|
||||
gdk_wayland_display_get_default_screen (GdkDisplay *display)
|
||||
{
|
||||
g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL);
|
||||
|
||||
return GDK_WAYLAND_DISPLAY (display)->screen;
|
||||
}
|
||||
|
||||
void
|
||||
gdk_wayland_display_system_bell (GdkDisplay *display,
|
||||
GdkWindow *window)
|
||||
@ -1012,7 +1004,6 @@ gdk_wayland_display_class_init (GdkWaylandDisplayClass *class)
|
||||
#endif
|
||||
|
||||
display_class->get_name = gdk_wayland_display_get_name;
|
||||
display_class->get_default_screen = gdk_wayland_display_get_default_screen;
|
||||
display_class->beep = gdk_wayland_display_beep;
|
||||
display_class->sync = gdk_wayland_display_sync;
|
||||
display_class->flush = gdk_wayland_display_flush;
|
||||
|
@ -530,14 +530,6 @@ gdk_win32_display_get_name (GdkDisplay *display)
|
||||
return display_name_cache;
|
||||
}
|
||||
|
||||
static GdkScreen *
|
||||
gdk_win32_display_get_default_screen (GdkDisplay *display)
|
||||
{
|
||||
g_return_val_if_fail (GDK_IS_WIN32_DISPLAY (display), NULL);
|
||||
|
||||
return GDK_WIN32_DISPLAY (display)->screen;
|
||||
}
|
||||
|
||||
static GdkWindow *
|
||||
gdk_win32_display_get_default_group (GdkDisplay *display)
|
||||
{
|
||||
@ -1256,7 +1248,6 @@ gdk_win32_display_class_init (GdkWin32DisplayClass *klass)
|
||||
display_class->window_type = GDK_TYPE_WIN32_WINDOW;
|
||||
|
||||
display_class->get_name = gdk_win32_display_get_name;
|
||||
display_class->get_default_screen = gdk_win32_display_get_default_screen;
|
||||
display_class->beep = gdk_win32_display_beep;
|
||||
display_class->sync = gdk_win32_display_sync;
|
||||
display_class->flush = gdk_win32_display_flush;
|
||||
|
@ -1859,12 +1859,6 @@ gdk_x11_display_get_name (GdkDisplay *display)
|
||||
return (gchar *) DisplayString (GDK_X11_DISPLAY (display)->xdisplay);
|
||||
}
|
||||
|
||||
static GdkScreen *
|
||||
gdk_x11_display_get_default_screen (GdkDisplay *display)
|
||||
{
|
||||
return GDK_X11_DISPLAY (display)->screen;
|
||||
}
|
||||
|
||||
gboolean
|
||||
_gdk_x11_display_is_root_window (GdkDisplay *display,
|
||||
Window xroot_window)
|
||||
@ -3144,7 +3138,6 @@ gdk_x11_display_class_init (GdkX11DisplayClass * class)
|
||||
#endif
|
||||
|
||||
display_class->get_name = gdk_x11_display_get_name;
|
||||
display_class->get_default_screen = gdk_x11_display_get_default_screen;
|
||||
display_class->beep = gdk_x11_display_beep;
|
||||
display_class->sync = gdk_x11_display_sync;
|
||||
display_class->flush = gdk_x11_display_flush;
|
||||
|
Loading…
Reference in New Issue
Block a user