Commit ce0074b0 authored by Matthias Clasen's avatar Matthias Clasen

Deprecate gdk_visual_get_byte_order

This function is only useful when working with XImages,
and is not meaningfully implemented in other backends.
parent c6cdddd6
......@@ -302,10 +302,15 @@ gdk_visual_get_depth (GdkVisual *visual)
* @visual: A #GdkVisual.
*
* Returns the byte order of this visual.
* The information returned by this function is only relevant
* when working with XImages, and not all backends return
* meaningful information for this.
*
* Returns: A #GdkByteOrder stating the byte order of @visual.
*
* Since: 2.22
*
* Deprecated: 3.22: This information is not useful
*/
GdkByteOrder
gdk_visual_get_byte_order (GdkVisual *visual)
......@@ -344,7 +349,8 @@ gdk_visual_get_colormap_size (GdkVisual *visual)
*
* Since: 2.22
*
* Deprecated: 3.22. Use gdk_visual_get_red_pixel_details() and its variants
* Deprecated: 3.22. Use gdk_visual_get_red_pixel_details() and its variants to
* learn about the pixel layout of TrueColor and DirectColor visuals
*/
gint
gdk_visual_get_bits_per_rgb (GdkVisual *visual)
......
......@@ -115,7 +115,7 @@ GDK_AVAILABLE_IN_ALL
GdkVisualType gdk_visual_get_visual_type (GdkVisual *visual);
GDK_AVAILABLE_IN_ALL
gint gdk_visual_get_depth (GdkVisual *visual);
GDK_AVAILABLE_IN_ALL
GDK_DEPRECATED_IN_3_22
GdkByteOrder gdk_visual_get_byte_order (GdkVisual *visual);
GDK_AVAILABLE_IN_ALL
gint gdk_visual_get_colormap_size (GdkVisual *visual);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment