Commit aa4c5459 authored by Matthias Clasen's avatar Matthias Clasen

Deprecate gdk_visual_get_bits_per_rgb

This function is pretty useless, since the Wayland backend returns
0 for this, and the Windows backend 42 (!).
parent c448061d
......@@ -338,10 +338,13 @@ gdk_visual_get_colormap_size (GdkVisual *visual)
* @visual: a #GdkVisual
*
* Returns the number of significant bits per red, green and blue value.
* Not all GDK backend provide a meaningful value for this function.
*
* Returns: The number of significant bits per color value for @visual.
*
* Since: 2.22
*
* Deprecated: 3.22. Use gdk_visual_get_red_pixel_details() and its variants
*/
gint
gdk_visual_get_bits_per_rgb (GdkVisual *visual)
......
......@@ -119,7 +119,7 @@ GDK_AVAILABLE_IN_ALL
GdkByteOrder gdk_visual_get_byte_order (GdkVisual *visual);
GDK_AVAILABLE_IN_ALL
gint gdk_visual_get_colormap_size (GdkVisual *visual);
GDK_AVAILABLE_IN_ALL
GDK_DEPRECATED_IN_3_22
gint gdk_visual_get_bits_per_rgb (GdkVisual *visual);
GDK_AVAILABLE_IN_ALL
void gdk_visual_get_red_pixel_details (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