[gtk/wip/matthiasc/popup4: 87/121] Drop gdk_surface_new_temp



commit 1d1d6f9bec06e14a01794c6e50dde90e343c0ac0
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Apr 20 04:30:33 2019 +0000

    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.

 docs/reference/gdk/gdk4-sections.txt |  1 -
 gdk/gdksurface.c                     | 19 -------------------
 gdk/gdksurface.h                     |  2 --
 3 files changed, 22 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index 6542bee15b..ab700bedf7 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -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
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 87c9e4aac2..4e9aaa8f29 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -556,25 +556,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,
diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h
index d64c63dd18..039c3b152d 100644
--- a/gdk/gdksurface.h
+++ b/gdk/gdksurface.h
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]