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.
This commit is contained in:
Sven Neumann 2010-10-19 09:59:59 +02:00
parent 31b64f3c80
commit 71ead96472
3 changed files with 8 additions and 7 deletions

View File

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

View File

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

View File

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