[gtk/present-toplevel: 23/54] Drop more redundant api



commit 62597357584942e7dd814e40765c5379e453be00
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Feb 29 13:12:27 2020 -0500

    Drop more redundant api

 gdk/gdksurface.c | 50 ++------------------------------------------------
 gdk/gdksurface.h |  4 ----
 2 files changed, 2 insertions(+), 52 deletions(-)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index ecd8e8d721..105b1005b3 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -2028,9 +2028,9 @@ gdk_toplevel_surface_present (GdkToplevel       *toplevel,
   gdk_surface_resize (surface, width, height);
 
   if (gdk_toplevel_layout_get_maximized (layout))
-    gdk_surface_maximize (surface);
+    GDK_SURFACE_GET_CLASS (surface)->maximize (surface);
   else
-    gdk_surface_unmaximize (surface);
+    GDK_SURFACE_GET_CLASS (surface)->unmaximize (surface);
 
   if (gdk_toplevel_layout_get_fullscreen (layout))
     {
@@ -2943,52 +2943,6 @@ gdk_surface_unstick (GdkSurface *surface)
   GDK_SURFACE_GET_CLASS (surface)->unstick (surface);
 }
 
-/**
- * gdk_surface_maximize:
- * @surface: a toplevel #GdkSurface
- *
- * Maximizes the surface. If the surface was already maximized, then
- * this function does nothing.
- *
- * On X11, asks the window manager to maximize @surface, if the window
- * manager supports this operation. Not all window managers support
- * this, and some deliberately ignore it or don’t have a concept of
- * “maximized”; so you can’t rely on the maximization actually
- * happening. But it will happen with most standard window managers,
- * and GDK makes a best effort to get it to happen.
- *
- * On Windows, reliably maximizes the surface.
- *
- **/
-void
-gdk_surface_maximize (GdkSurface *surface)
-{
-  GDK_SURFACE_GET_CLASS (surface)->maximize (surface);
-}
-
-/**
- * gdk_surface_unmaximize:
- * @surface: a toplevel #GdkSurface
- *
- * Unmaximizes the surface. If the surface wasn’t maximized, then this
- * function does nothing.
- *
- * On X11, asks the window manager to unmaximize @surface, if the
- * window manager supports this operation. Not all window managers
- * support this, and some deliberately ignore it or don’t have a
- * concept of “maximized”; so you can’t rely on the unmaximization
- * actually happening. But it will happen with most standard window
- * managers, and GDK makes a best effort to get it to happen.
- *
- * On Windows, reliably unmaximizes the surface.
- *
- **/
-void
-gdk_surface_unmaximize (GdkSurface *surface)
-{
-  GDK_SURFACE_GET_CLASS (surface)->unmaximize (surface);
-}
-
 /**
  * gdk_surface_fullscreen:
  * @surface: a toplevel #GdkSurface
diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h
index 97094be587..f61e42a301 100644
--- a/gdk/gdksurface.h
+++ b/gdk/gdksurface.h
@@ -465,10 +465,6 @@ void          gdk_surface_stick           (GdkSurface       *surface);
 GDK_AVAILABLE_IN_ALL
 void          gdk_surface_unstick         (GdkSurface       *surface);
 GDK_AVAILABLE_IN_ALL
-void          gdk_surface_maximize        (GdkSurface       *surface);
-GDK_AVAILABLE_IN_ALL
-void          gdk_surface_unmaximize      (GdkSurface       *surface);
-GDK_AVAILABLE_IN_ALL
 void          gdk_surface_fullscreen      (GdkSurface       *surface);
 GDK_AVAILABLE_IN_ALL
 void          gdk_surface_fullscreen_on_monitor (GdkSurface      *surface,


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