[gtk/present-toplevel: 44/54] surface: Drop more toplevel api
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel: 44/54] surface: Drop more toplevel api
- Date: Sun, 1 Mar 2020 19:37:24 +0000 (UTC)
commit 0bd98d13c388dbe1b3eda7ae78da2a6a82772f5b
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Mar 1 10:44:12 2020 -0800
surface: Drop more toplevel api
gdk/gdksurface.c | 121 -------------------------------------------------------
gdk/gdksurface.h | 14 -------
2 files changed, 135 deletions(-)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 31dbd65d8c..56caecbd28 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -2818,83 +2818,6 @@ gdk_surface_set_focus_on_map (GdkSurface *surface,
GDK_SURFACE_GET_CLASS (surface)->set_focus_on_map (surface, focus_on_map);
}
-/**
- * gdk_surface_minimize:
- * @surface: a toplevel #GdkSurface
- *
- * Asks to minimize the @surface.
- *
- * The windowing system may choose to ignore the request.
- *
- * You can track the result of this request by using the #GdkSurface:state
- * property.
- *
- * This function only makes sense when @surface is a toplevel surface.
- */
-void
-gdk_surface_minimize (GdkSurface *surface)
-{
- g_return_if_fail (GDK_IS_SURFACE (surface));
-
- GDK_SURFACE_GET_CLASS (surface)->minimize (surface);
-}
-
-/**
- * gdk_surface_unminimize:
- * @surface: a toplevel #GdkSurface
- *
- * Asks to unminimize the @surface.
- *
- * The windowing system may choose to ignore the request.
- *
- * You can track the result of this request by using the #GdkSurface:state
- * property.
- *
- * This function only makes sense when @surface is a toplevel surface.
- */
-void
-gdk_surface_unminimize (GdkSurface *surface)
-{
- g_return_if_fail (GDK_IS_SURFACE (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)
@@ -2918,50 +2841,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 bba1ed70b9..ac139c7620 100644
--- a/gdk/gdksurface.h
+++ b/gdk/gdksurface.h
@@ -438,20 +438,6 @@ cairo_surface_t *
GDK_AVAILABLE_IN_ALL
void gdk_surface_beep (GdkSurface *surface);
GDK_AVAILABLE_IN_ALL
-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]