Drop gdk_surface_new_temp

This is no longer used, and the only difference
to gdk_surface_new_popup is input-only, which is
an X11-only concept.
This commit is contained in:
Matthias Clasen 2019-04-20 04:30:33 +00:00
parent 346bd3f6b5
commit 82c8a05855
3 changed files with 0 additions and 22 deletions

View File

@ -180,7 +180,6 @@ GdkSurfaceTypeHint
GdkSurfaceState
gdk_surface_new_toplevel
gdk_surface_new_popup
gdk_surface_new_temp
gdk_surface_new_child
gdk_surface_destroy
gdk_surface_get_surface_type

View File

@ -590,25 +590,6 @@ gdk_surface_new_popup_full (GdkDisplay *display,
return surface;
}
/**
* gdk_surface_new_temp: (constructor)
* @display: the display to create the surface on
*
* Creates a new toplevel temporary surface. The surface will be
* situated off-screen and not handle output.
*
* You most likely do not want to use this function.
*
* Returns: (transfer full): the new #GdkSurface
**/
GdkSurface *
gdk_surface_new_temp (GdkDisplay *display)
{
g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL);
return gdk_surface_new (display, TRUE, GDK_SURFACE_TEMP, -100, -100, 10, 10);
}
static void
update_pointer_info_foreach (GdkDisplay *display,
GdkDevice *device,

View File

@ -440,8 +440,6 @@ GdkSurface * gdk_surface_new_popup (GdkDisplay *display,
GDK_AVAILABLE_IN_ALL
GdkSurface * gdk_surface_new_popup_full (GdkDisplay *display,
GdkSurface *parent);
GDK_AVAILABLE_IN_ALL
GdkSurface * gdk_surface_new_temp (GdkDisplay *display);
GDK_AVAILABLE_IN_ALL
void gdk_surface_destroy (GdkSurface *surface);