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 (!).
This commit is contained in:
Matthias Clasen 2016-03-26 14:20:23 -04:00
parent c448061d49
commit aa4c5459b7
2 changed files with 4 additions and 1 deletions

View File

@ -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)

View File

@ -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,