Deprecate. (#60582)

2003-01-31  Matthias Clasen  <maclas@gmx.de>

	* gdk/gdkpixbuf.h:
	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
	(gdk_pixbuf_render_to_drawable_alpha): Deprecate.  (#60582)

	* gtk/gtkcolorsel.h:
	* gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
	Deprecate.  (#98167)
This commit is contained in:
Matthias Clasen 2003-01-31 00:37:38 +00:00 committed by Matthias Clasen
parent 2435e831cf
commit 46d15e32bd
9 changed files with 57 additions and 15 deletions

View File

@ -1,5 +1,13 @@
2003-01-31 Matthias Clasen <maclas@gmx.de>
* gdk/gdkpixbuf.h:
* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
(gdk_pixbuf_render_to_drawable_alpha): Deprecate. (#60582)
* gtk/gtkcolorsel.h:
* gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
Deprecate. (#98167)
* gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
* gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*

View File

@ -1,5 +1,13 @@
2003-01-31 Matthias Clasen <maclas@gmx.de>
* gdk/gdkpixbuf.h:
* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
(gdk_pixbuf_render_to_drawable_alpha): Deprecate. (#60582)
* gtk/gtkcolorsel.h:
* gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
Deprecate. (#98167)
* gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
* gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*

View File

@ -1,5 +1,13 @@
2003-01-31 Matthias Clasen <maclas@gmx.de>
* gdk/gdkpixbuf.h:
* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
(gdk_pixbuf_render_to_drawable_alpha): Deprecate. (#60582)
* gtk/gtkcolorsel.h:
* gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
Deprecate. (#98167)
* gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
* gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*

View File

@ -1,5 +1,13 @@
2003-01-31 Matthias Clasen <maclas@gmx.de>
* gdk/gdkpixbuf.h:
* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
(gdk_pixbuf_render_to_drawable_alpha): Deprecate. (#60582)
* gtk/gtkcolorsel.h:
* gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
Deprecate. (#98167)
* gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
* gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*

View File

@ -1,5 +1,13 @@
2003-01-31 Matthias Clasen <maclas@gmx.de>
* gdk/gdkpixbuf.h:
* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
(gdk_pixbuf_render_to_drawable_alpha): Deprecate. (#60582)
* gtk/gtkcolorsel.h:
* gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
Deprecate. (#98167)
* gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
* gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*

View File

@ -164,7 +164,7 @@ gdk_pixbuf_render_threshold_alpha (GdkPixbuf *pixbuf,
* for consistent visual results. If you do not have any of these cases, the
* dither offsets can be both zero.
*
* This function is obsolete. Use gdk_draw_pixbuf() instead.
* Deprecated: This function is obsolete. Use gdk_draw_pixbuf() instead.
**/
void
gdk_pixbuf_render_to_drawable (GdkPixbuf *pixbuf,
@ -207,7 +207,7 @@ gdk_pixbuf_render_to_drawable (GdkPixbuf *pixbuf,
* On older X servers, rendering pixbufs with an alpha channel involves round trips
* to the X server, and may be somewhat slow.
*
* This function is obsolete. Use gdk_draw_pixbuf() instead.
* Deprecated: This function is obsolete. Use gdk_draw_pixbuf() instead.
**/
void
gdk_pixbuf_render_to_drawable_alpha (GdkPixbuf *pixbuf,
@ -238,8 +238,7 @@ gdk_pixbuf_render_to_drawable_alpha (GdkPixbuf *pixbuf,
* and @mask_return arguments, respectively, and renders a pixbuf and its
* corresponding thresholded alpha mask to them. This is merely a convenience
* function; applications that need to render pixbufs with dither offsets or to
* given drawables should use gdk_pixbuf_render_to_drawable_alpha() or
* gdk_pixbuf_render_to_drawable(), and gdk_pixbuf_render_threshold_alpha().
* given drawables should use gdk_draw_pixbuf() and gdk_pixbuf_render_threshold_alpha().
*
* The pixmap that is created is created for the colormap returned
* by gdk_rgb_get_colormap(). You normally will want to instead use
@ -275,8 +274,7 @@ gdk_pixbuf_render_pixmap_and_mask (GdkPixbuf *pixbuf,
* and @mask_return arguments, respectively, and renders a pixbuf and its
* corresponding tresholded alpha mask to them. This is merely a convenience
* function; applications that need to render pixbufs with dither offsets or to
* given drawables should use gdk_pixbuf_render_to_drawable_alpha() or
* gdk_pixbuf_render_to_drawable(), and gdk_pixbuf_render_threshold_alpha().
* given drawables should use gdk_draw_pixbuf(), and gdk_pixbuf_render_threshold_alpha().
*
* The pixmap that is created uses the #GdkColormap specified by @colormap.
* This colormap must match the colormap of the window where the pixmap
@ -308,7 +306,7 @@ gdk_pixbuf_render_pixmap_and_mask_for_colormap (GdkPixbuf *pixbuf,
gdk_drawable_set_colormap (GDK_DRAWABLE (*pixmap_return), colormap);
gc = gdk_gc_new (*pixmap_return);
gdk_pixbuf_render_to_drawable (pixbuf, *pixmap_return, gc,
gdk_draw_pixbuf (*pixmap_return, gc, pixbuf,
0, 0, 0, 0,
gdk_pixbuf_get_width (pixbuf), gdk_pixbuf_get_height (pixbuf),
GDK_RGB_DITHER_NORMAL,

View File

@ -20,6 +20,7 @@ void gdk_pixbuf_render_threshold_alpha (GdkPixbuf *pixbuf,
int width,
int height,
int alpha_threshold);
#ifndef GDK_DISABLE_DEPRECATED
void gdk_pixbuf_render_to_drawable (GdkPixbuf *pixbuf,
GdkDrawable *drawable,
GdkGC *gc,
@ -45,7 +46,7 @@ void gdk_pixbuf_render_to_drawable_alpha (GdkPixbuf *pixbuf,
GdkRgbDither dither,
int x_dither,
int y_dither);
#endif /* GDK_DISABLE_DEPRECATED */
void gdk_pixbuf_render_pixmap_and_mask_for_colormap (GdkPixbuf *pixbuf,
GdkColormap *colormap,
GdkPixmap **pixmap_return,

View File

@ -2250,7 +2250,7 @@ gtk_color_selection_set_current_alpha (GtkColorSelection *colorsel,
* Sets the current color to be @color. The first time this is called, it will
* also set the original color to be @color too.
*
* This function is deprecated, use gtk_color_selection_set_current_color() instead.
* Deprecated: Use gtk_color_selection_set_current_color() instead.
**/
void
gtk_color_selection_set_color (GtkColorSelection *colorsel,
@ -2681,11 +2681,12 @@ gtk_color_selection_palette_to_string (const GdkColor *colors,
* the new palette contents, and update the GtkSettings property
* "gtk-color-palette" so all GtkColorSelection widgets will be modified.
*
* This function is deprecated in favor of
* Return value: the previous change palette hook (that was replaced).
*
* Deprecated: This function is deprecated in favor of
* gtk_color_selection_set_change_palette_with_screen_hook(), and does
* not work in multihead environments.
*
* Return value: the previous change palette hook (that was replaced).
**/
GtkColorSelectionChangePaletteFunc
gtk_color_selection_set_change_palette_hook (GtkColorSelectionChangePaletteFunc func)

View File

@ -110,9 +110,11 @@ gboolean gtk_color_selection_palette_from_string (const gchar *str,
gchar* gtk_color_selection_palette_to_string (const GdkColor *colors,
gint n_colors);
#ifndef GTK_DISABLE_DEPRECATED
#ifndef GDK_MULTIHEAD_SAFE
GtkColorSelectionChangePaletteFunc gtk_color_selection_set_change_palette_hook (GtkColorSelectionChangePaletteFunc func);
#endif
#endif
GtkColorSelectionChangePaletteWithScreenFunc gtk_color_selection_set_change_palette_with_screen_hook (GtkColorSelectionChangePaletteWithScreenFunc func);