[gimp] libgimp: deprecate gimp_min_colors() and gimp_install_cmap()



commit 71ead9647238c92c8cbd7c30009794def64a214a
Author: Sven Neumann <sven gimp org>
Date:   Tue Oct 19 09:59:59 2010 +0200

    libgimp: deprecate gimp_min_colors() and gimp_install_cmap()
    
    Also remove calls to gdk_rgb_set_min_colors() and gdk_rgb_set_install()
    from gimp_ui_init(). These are considered obsolete nowadays.

 libgimp/gimp.c   |    4 ++++
 libgimp/gimp.h   |    5 +++--
 libgimp/gimpui.c |    6 +-----
 3 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/libgimp/gimp.c b/libgimp/gimp.c
index 08cc4d9..b0fbb4b 100644
--- a/libgimp/gimp.c
+++ b/libgimp/gimp.c
@@ -1186,6 +1186,8 @@ gimp_gamma (void)
  *
  * This is a constant value given at plug-in configuration time.
  *
+ * @Deprecated: 2.8
+ *
  * Return value: the install_cmap boolean
  **/
 gboolean
@@ -1204,6 +1206,8 @@ gimp_install_cmap (void)
  *
  * See also: gimp_install_cmap()
  *
+ * @Deprecated: 2.8
+ *
  * Return value: the minimum number of colors to allocate
  **/
 gint
diff --git a/libgimp/gimp.h b/libgimp/gimp.h
index 93f256c..c190fec 100644
--- a/libgimp/gimp.h
+++ b/libgimp/gimp.h
@@ -317,8 +317,6 @@ guint          gimp_tile_height         (void) G_GNUC_CONST;
 gint           gimp_shm_ID              (void) G_GNUC_CONST;
 guchar       * gimp_shm_addr            (void) G_GNUC_CONST;
 gdouble        gimp_gamma               (void) G_GNUC_CONST;
-gboolean       gimp_install_cmap        (void) G_GNUC_CONST;
-gint           gimp_min_colors          (void) G_GNUC_CONST;
 gboolean       gimp_show_tool_tips      (void) G_GNUC_CONST;
 gboolean       gimp_show_help_button    (void) G_GNUC_CONST;
 GimpCheckSize  gimp_check_size          (void) G_GNUC_CONST;
@@ -332,6 +330,9 @@ guint32        gimp_user_time           (void) G_GNUC_CONST;
 const gchar  * gimp_get_progname        (void) G_GNUC_CONST;
 
 #ifndef GIMP_DISABLE_DEPRECATED
+gboolean       gimp_install_cmap        (void) G_GNUC_CONST;
+gint           gimp_min_colors          (void) G_GNUC_CONST;
+
 gboolean       gimp_attach_new_parasite (const gchar    *name,
                                          gint            flags,
                                          gint            size,
diff --git a/libgimp/gimpui.c b/libgimp/gimpui.c
index c2671ee..066b63d 100644
--- a/libgimp/gimpui.c
+++ b/libgimp/gimpui.c
@@ -34,8 +34,7 @@
  * @title: gimpui
  * @short_description: Common user interface functions. This header includes
  *                     all other GIMP User Interface Library headers.
- * @see_also: gtk_init(), gdk_set_use_xshm(), gdk_rgb_set_min_colors(),
- *            gdk_rgb_set_install(), gdk_rgb_get_visual(),
+ * @see_also: gtk_init(), gdk_set_use_xshm(), gdk_rgb_get_visual(),
  *            gdk_rgb_get_cmap(), gtk_widget_set_default_visual(),
  *            gtk_widget_set_default_colormap(), gtk_preview_set_gamma().
  *
@@ -123,9 +122,6 @@ gimp_ui_init (const gchar *prog_name,
 
   gdk_set_program_class (gimp_wm_class ());
 
-  gdk_rgb_set_min_colors (gimp_min_colors ());
-  gdk_rgb_set_install (gimp_install_cmap ());
-
   screen = gdk_screen_get_default ();
   gtk_widget_set_default_colormap (gdk_screen_get_rgb_colormap (screen));
 



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