surface: Drop more toplevel api
The wm decorations and functions have been moved to GdkToplevelLayout.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 *
|
||||
|
||||
Reference in New Issue
Block a user