[gtk/present-toplevel-2: 43/71] Drop surface api for stick, above, below
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 43/71] Drop surface api for stick, above, below
- Date: Thu, 5 Mar 2020 02:30:11 +0000 (UTC)
commit 8ada33d7d05c1e8b32fedf9f072d91d67e0307cb
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Mar 3 02:37:32 2020 -0800
Drop surface api for stick, above, below
gdk/gdksurface.c | 79 --------------------------------------------------------
gdk/gdksurface.h | 10 -------
2 files changed, 89 deletions(-)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index c9fa6dc733..d008aede04 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -2827,41 +2827,6 @@ gdk_surface_unminimize (GdkSurface *surface)
GDK_SURFACE_GET_CLASS (surface)->unminimize (surface);
}
-/**
- * gdk_surface_stick:
- * @surface: a toplevel #GdkSurface
- *
- * “Pins” a surface such that it’s on all workspaces and does not scroll
- * with viewports, for window managers that have scrollable viewports.
- * (When using #GtkWindow, gtk_window_stick() may be more useful.)
- *
- * On the X11 platform, this function depends on window manager
- * support, so may have no effect with many window managers. However,
- * GDK will do the best it can to convince the window manager to stick
- * the surface. For window managers that don’t support this operation,
- * there’s nothing you can do to force it to happen.
- *
- **/
-void
-gdk_surface_stick (GdkSurface *surface)
-{
- GDK_SURFACE_GET_CLASS (surface)->stick (surface);
-}
-
-/**
- * gdk_surface_unstick:
- * @surface: a toplevel #GdkSurface
- *
- * Reverse operation for gdk_surface_stick(); see gdk_surface_stick(),
- * and gtk_window_unstick().
- *
- **/
-void
-gdk_surface_unstick (GdkSurface *surface)
-{
- GDK_SURFACE_GET_CLASS (surface)->unstick (surface);
-}
-
void
gdk_surface_set_fullscreen_mode (GdkSurface *surface,
GdkFullscreenMode mode)
@@ -2885,50 +2850,6 @@ gdk_surface_get_fullscreen_mode (GdkSurface *surface)
return surface->fullscreen_mode;
}
-/**
- * gdk_surface_set_keep_above:
- * @surface: a toplevel #GdkSurface
- * @setting: whether to keep @surface above other surfaces
- *
- * Set if @surface must be kept above other surfaces. If the
- * surface was already above, then this function does nothing.
- *
- * On X11, asks the window manager to keep @surface above, 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
- * “keep above”; so you can’t rely on the surface being kept above.
- * But it will happen with most standard window managers,
- * and GDK makes a best effort to get it to happen.
- **/
-void
-gdk_surface_set_keep_above (GdkSurface *surface,
- gboolean setting)
-{
- GDK_SURFACE_GET_CLASS (surface)->set_keep_above (surface, setting);
-}
-
-/**
- * gdk_surface_set_keep_below:
- * @surface: a toplevel #GdkSurface
- * @setting: whether to keep @surface below other surfaces
- *
- * Set if @surface must be kept below other surfaces. If the
- * surface was already below, then this function does nothing.
- *
- * On X11, asks the window manager to keep @surface below, 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
- * “keep below”; so you can’t rely on the surface being kept below.
- * But it will happen with most standard window managers,
- * and GDK makes a best effort to get it to happen.
- **/
-void
-gdk_surface_set_keep_below (GdkSurface *surface,
- gboolean setting)
-{
- GDK_SURFACE_GET_CLASS (surface)->set_keep_below (surface, setting);
-}
-
/**
* gdk_surface_set_decorations:
* @surface: a toplevel #GdkSurface
diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h
index 89a1733ea5..38dd77930a 100644
--- a/gdk/gdksurface.h
+++ b/gdk/gdksurface.h
@@ -440,16 +440,6 @@ void gdk_surface_minimize (GdkSurface *surface);
GDK_AVAILABLE_IN_ALL
void gdk_surface_unminimize (GdkSurface *surface);
GDK_AVAILABLE_IN_ALL
-void gdk_surface_stick (GdkSurface *surface);
-GDK_AVAILABLE_IN_ALL
-void gdk_surface_unstick (GdkSurface *surface);
-GDK_AVAILABLE_IN_ALL
-void gdk_surface_set_keep_above (GdkSurface *surface,
- gboolean setting);
-GDK_AVAILABLE_IN_ALL
-void gdk_surface_set_keep_below (GdkSurface *surface,
- gboolean setting);
-GDK_AVAILABLE_IN_ALL
void gdk_surface_set_opacity (GdkSurface *surface,
gdouble opacity);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]