From 7f0c0cc52d55708c4d282a6ccc95109278b9181b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 1 Mar 2020 11:24:21 -0800 Subject: [PATCH] surface: Drop more toplevel api The wm decorations and functions have been moved to GdkToplevelLayout. --- gdk/gdksurface.c | 72 ------------------------------------------------ gdk/gdksurface.h | 9 ------ 2 files changed, 81 deletions(-) diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c index f80babbe1e..c6a94f1759 100644 --- a/gdk/gdksurface.c +++ b/gdk/gdksurface.c @@ -2858,78 +2858,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 db204e9922..78244c66a5 100644 --- a/gdk/gdksurface.h +++ b/gdk/gdksurface.h @@ -418,15 +418,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 *