[gtk/present-toplevel-2: 13/59] Drop gdk_surface_get_state



commit a59c8055b1e8b43a49fcaeca528a11b174afc36d
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Mar 1 11:43:50 2020 -0500

    Drop gdk_surface_get_state
    
    You can now use gdk_toplevel_get_state instead.

 gdk/gdksurface.c | 17 -----------------
 gdk/gdksurface.h |  3 ---
 2 files changed, 20 deletions(-)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 72f24392d2..fa0546264b 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -1002,23 +1002,6 @@ gdk_surface_is_viewable (GdkSurface *surface)
   return surface->viewable;
 }
 
-/**
- * gdk_surface_get_state:
- * @surface: a #GdkSurface
- *
- * Gets the bitwise OR of the currently active surface state flags,
- * from the #GdkSurfaceState enumeration.
- *
- * Returns: surface state bitfield
- **/
-GdkSurfaceState
-gdk_surface_get_state (GdkSurface *surface)
-{
-  g_return_val_if_fail (GDK_IS_SURFACE (surface), FALSE);
-
-  return surface->state;
-}
-
 GdkGLContext *
 gdk_surface_get_shared_data_gl_context (GdkSurface *surface)
 {
diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h
index f61e42a301..25e0dfa1ac 100644
--- a/gdk/gdksurface.h
+++ b/gdk/gdksurface.h
@@ -387,9 +387,6 @@ gboolean gdk_surface_is_viewable    (GdkSurface *surface);
 GDK_AVAILABLE_IN_ALL
 gboolean      gdk_surface_get_mapped   (GdkSurface *surface);
 
-GDK_AVAILABLE_IN_ALL
-GdkSurfaceState gdk_surface_get_state (GdkSurface *surface);
-
 GDK_AVAILABLE_IN_ALL
 void          gdk_surface_set_title         (GdkSurface   *surface,
                                              const gchar  *title);


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