[gtk/present-toplevel: 31/54] Drop gdk_surface_get_state



commit b6658358f40e8c26a20b6aaa5c45b03e7035e394
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 05eb94fd65..98d520e028 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -1024,23 +1024,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]