[gtk/present-toplevel-2: 113/178] surface: Drop wm hint apis
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 113/178] surface: Drop wm hint apis
- Date: Tue, 10 Mar 2020 01:19:26 +0000 (UTC)
commit d3ce0d486d316371eb0b6b5a0bd1864723041c0f
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Mar 3 12:26:37 2020 -0800
surface: Drop wm hint apis
This is now handled by GdkToplevel
gdk/gdksurface.c | 72 --------------------------------------------------------
gdk/gdksurface.h | 9 -------
2 files changed, 81 deletions(-)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 7eb485f45b..4ae9c57545 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -2776,78 +2776,6 @@ gdk_surface_get_fullscreen_mode (GdkSurface *surface)
return surface->fullscreen_mode;
}
-/**
- * gdk_surface_set_decorations:
- * @surface: a toplevel #GdkSurface
- * @decorations: decoration hint mask
- *
- * “Decorations” are the features the window manager adds to a toplevel #GdkSurface.
- * This function sets the traditional Motif window manager hints that tell the
- * window manager which decorations you would like your surface to have.
- * Usually you should use gtk_window_set_decorated() on a #GtkWindow instead of
- * using the GDK function directly.
- *
- * The @decorations argument is the logical OR of the fields in
- * the #GdkWMDecoration enumeration. If #GDK_DECOR_ALL is included in the
- * mask, the other bits indicate which decorations should be turned off.
- * If #GDK_DECOR_ALL is not included, then the other bits indicate
- * which decorations should be turned on.
- *
- * Most window managers honor a decorations hint of 0 to disable all decorations,
- * but very few honor all possible combinations of bits.
- *
- **/
-void
-gdk_surface_set_decorations (GdkSurface *surface,
- GdkWMDecoration decorations)
-{
- GDK_SURFACE_GET_CLASS (surface)->set_decorations (surface, decorations);
-}
-
-/**
- * gdk_surface_get_decorations:
- * @surface: The toplevel #GdkSurface to get the decorations from
- * @decorations: (out): The surface decorations will be written here
- *
- * Returns the decorations set on the GdkSurface with
- * gdk_surface_set_decorations().
- *
- * Returns: %TRUE if the surface has decorations set, %FALSE otherwise.
- **/
-gboolean
-gdk_surface_get_decorations (GdkSurface *surface,
- GdkWMDecoration *decorations)
-{
- return GDK_SURFACE_GET_CLASS (surface)->get_decorations (surface, decorations);
-}
-
-/**
- * gdk_surface_set_functions:
- * @surface: a toplevel #GdkSurface
- * @functions: bitmask of operations to allow on @surface
- *
- * Sets hints about the window management functions to make available
- * via buttons on the window frame.
- *
- * On the X backend, this function sets the traditional Motif window
- * manager hint for this purpose. However, few window managers do
- * anything reliable or interesting with this hint. Many ignore it
- * entirely.
- *
- * The @functions argument is the logical OR of values from the
- * #GdkWMFunction enumeration. If the bitmask includes #GDK_FUNC_ALL,
- * then the other bits indicate which functions to disable; if
- * it doesn’t include #GDK_FUNC_ALL, it indicates which functions to
- * enable.
- *
- **/
-void
-gdk_surface_set_functions (GdkSurface *surface,
- GdkWMFunction functions)
-{
- GDK_SURFACE_GET_CLASS (surface)->set_functions (surface, functions);
-}
-
/**
* gdk_surface_begin_resize_drag:
* @surface: a toplevel #GdkSurface
diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h
index 13f7092063..0bde1ffd04 100644
--- a/gdk/gdksurface.h
+++ b/gdk/gdksurface.h
@@ -402,15 +402,6 @@ void gdk_surface_get_device_position (GdkSurface *surface,
double *x,
double *y,
GdkModifierType *mask);
-GDK_AVAILABLE_IN_ALL
-void gdk_surface_set_decorations (GdkSurface *surface,
- GdkWMDecoration decorations);
-GDK_AVAILABLE_IN_ALL
-gboolean gdk_surface_get_decorations (GdkSurface *surface,
- GdkWMDecoration *decorations);
-GDK_AVAILABLE_IN_ALL
-void gdk_surface_set_functions (GdkSurface *surface,
- GdkWMFunction functions);
GDK_AVAILABLE_IN_ALL
cairo_surface_t *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]