[gtk+] visual: Remove deprecated API



commit b4c37bfff839b83208cff11d9f70f61dadfa58e6
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Oct 26 10:12:58 2016 +0200

    visual: Remove deprecated API

 docs/reference/gdk/gdk4-sections.txt |    3 -
 gdk/gdkvisual.c                      |   70 ----------------------------------
 gdk/gdkvisual.h                      |    6 ---
 3 files changed, 0 insertions(+), 79 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index 2e87b97..7d51e65 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -264,10 +264,7 @@ GdkByteOrder
 gdk_query_depths
 gdk_query_visual_types
 gdk_list_visuals
-gdk_visual_get_bits_per_rgb
 gdk_visual_get_blue_pixel_details
-gdk_visual_get_byte_order
-gdk_visual_get_colormap_size
 gdk_visual_get_depth
 gdk_visual_get_green_pixel_details
 gdk_visual_get_red_pixel_details
diff --git a/gdk/gdkvisual.c b/gdk/gdkvisual.c
index efdeac7..29fb696 100644
--- a/gdk/gdkvisual.c
+++ b/gdk/gdkvisual.c
@@ -297,76 +297,6 @@ gdk_visual_get_depth (GdkVisual *visual)
   return visual->depth;
 }
 
-/**
- * gdk_visual_get_byte_order:
- * @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)
-{
-  g_return_val_if_fail (GDK_IS_VISUAL (visual), 0);
-
-  return visual->byte_order;
-}
-
-/**
- * gdk_visual_get_colormap_size:
- * @visual: A #GdkVisual.
- *
- * Returns the size of a colormap for this visual.
- *
- * You have to use platform-specific APIs to manipulate colormaps.
- *
- * Returns: The size of a colormap that is suitable for @visual.
- *
- * Since: 2.22
- *
- * Deprecated: 3.22: This information is not useful, since GDK does not
- *     provide APIs to operate on colormaps.
- */
-gint
-gdk_visual_get_colormap_size (GdkVisual *visual)
-{
-  g_return_val_if_fail (GDK_IS_VISUAL (visual), 0);
-
-  return visual->colormap_size;
-}
-
-/**
- * gdk_visual_get_bits_per_rgb:
- * @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 to
- *     learn about the pixel layout of TrueColor and DirectColor visuals
- */
-gint
-gdk_visual_get_bits_per_rgb (GdkVisual *visual)
-{
-  g_return_val_if_fail (GDK_IS_VISUAL (visual), 0);
-
-  return visual->bits_per_rgb;
-}
-
 static void
 gdk_visual_get_pixel_details (GdkVisual *visual,
                               gulong     pixel_mask,
diff --git a/gdk/gdkvisual.h b/gdk/gdkvisual.h
index a401f1f..3445d31 100644
--- a/gdk/gdkvisual.h
+++ b/gdk/gdkvisual.h
@@ -115,12 +115,6 @@ GDK_AVAILABLE_IN_ALL
 GdkVisualType gdk_visual_get_visual_type         (GdkVisual *visual);
 GDK_AVAILABLE_IN_ALL
 gint          gdk_visual_get_depth               (GdkVisual *visual);
-GDK_DEPRECATED_IN_3_22
-GdkByteOrder  gdk_visual_get_byte_order          (GdkVisual *visual);
-GDK_DEPRECATED_IN_3_22
-gint          gdk_visual_get_colormap_size       (GdkVisual *visual);
-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,
                                                   guint32   *mask,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]