diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-10-07 21:18:25 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-10-07 21:18:25 -0400 |
commit | 5d7907caa5fd3df80a2f776d2f7692c5998992cc (patch) | |
tree | eeea3e2214f05c3f31388eed48fbfaa07f040071 | |
parent | 606ab611bdae26dbc1eb44f42837426100443410 (diff) | |
download | gtk+-5d7907caa5fd3df80a2f776d2f7692c5998992cc.tar.gz |
gdk: Drop gdk_surface_new_temp
It is not used anymore.
-rw-r--r-- | gdk/gdksurface.c | 23 | ||||
-rw-r--r-- | gdk/gdksurfaceprivate.h | 3 |
2 files changed, 0 insertions, 26 deletions
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c index 168a1264fa..4b485a012d 100644 --- a/gdk/gdksurface.c +++ b/gdk/gdksurface.c @@ -817,29 +817,6 @@ gdk_surface_new_toplevel (GdkDisplay *display) } /** - * gdk_surface_new_temp: (constructor) - * @display: the display to create the surface on - * @position: position of the surface on screen - * - * Creates a new temporary surface. - * The surface will bypass surface management. - * - * Returns: (transfer full): the new #GdkSurface - **/ -GdkSurface * -gdk_surface_new_temp (GdkDisplay *display, - const GdkRectangle *position) -{ - g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL); - g_return_val_if_fail (position != NULL, NULL); - - return gdk_surface_new (display, GDK_SURFACE_TEMP, - NULL, - position->x, position->y, - position->width, position->height); -} - -/** * gdk_surface_new_popup: (constructor) * @parent: the parent surface to attach the surface to * @autohide: whether to hide the surface on outside clicks diff --git a/gdk/gdksurfaceprivate.h b/gdk/gdksurfaceprivate.h index 59563b79aa..f655d6c97f 100644 --- a/gdk/gdksurfaceprivate.h +++ b/gdk/gdksurfaceprivate.h @@ -277,9 +277,6 @@ void gdk_surface_enter_monitor (GdkSurface *surface, void gdk_surface_leave_monitor (GdkSurface *surface, GdkMonitor *monitor); -GdkSurface * gdk_surface_new_temp (GdkDisplay *display, - const GdkRectangle *position); - void gdk_surface_destroy_notify (GdkSurface *surface); void gdk_synthesize_surface_state (GdkSurface *surface, |