[gtk+/wip/ricotz/deprecated] gdk: Remove deprecated gdk_cairo_set_source_color
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/ricotz/deprecated] gdk: Remove deprecated gdk_cairo_set_source_color
- Date: Mon, 24 Oct 2016 08:37:29 +0000 (UTC)
commit 7630c864684a7b7b74e089326d30abc533ab5235
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Oct 24 10:36:55 2016 +0200
gdk: Remove deprecated gdk_cairo_set_source_color
docs/reference/gdk/gdk4-sections.txt | 1 -
gdk/gdkcairo.c | 24 ------------------------
gdk/gdkcairo.h | 4 ----
3 files changed, 0 insertions(+), 29 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index fa1f6e7..c6c1da6 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -597,7 +597,6 @@ gdk_window_create_similar_surface
gdk_window_create_similar_image_surface
gdk_cairo_get_clip_rectangle
gdk_cairo_get_drawing_context
-gdk_cairo_set_source_color
gdk_cairo_set_source_rgba
gdk_cairo_set_source_pixbuf
gdk_cairo_set_source_window
diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c
index 633b391..954e2c4 100644
--- a/gdk/gdkcairo.c
+++ b/gdk/gdkcairo.c
@@ -80,30 +80,6 @@ gdk_cairo_get_clip_rectangle (cairo_t *cr,
}
/**
- * gdk_cairo_set_source_color:
- * @cr: a cairo context
- * @color: a #GdkColor
- *
- * Sets the specified #GdkColor as the source color of @cr.
- *
- * Since: 2.8
- *
- * Deprecated: 3.4: Use gdk_cairo_set_source_rgba() instead
- */
-void
-gdk_cairo_set_source_color (cairo_t *cr,
- const GdkColor *color)
-{
- g_return_if_fail (cr != NULL);
- g_return_if_fail (color != NULL);
-
- cairo_set_source_rgb (cr,
- color->red / 65535.,
- color->green / 65535.,
- color->blue / 65535.);
-}
-
-/**
* gdk_cairo_set_source_rgba:
* @cr: a cairo context
* @rgba: a #GdkRGBA
diff --git a/gdk/gdkcairo.h b/gdk/gdkcairo.h
index 8ba8baa..ec7b5f5 100644
--- a/gdk/gdkcairo.h
+++ b/gdk/gdkcairo.h
@@ -61,10 +61,6 @@ cairo_region_t *
gdk_cairo_region_create_from_surface
(cairo_surface_t *surface);
-GDK_DEPRECATED_IN_3_4_FOR(gdk_cairo_set_source_rgba)
-void gdk_cairo_set_source_color (cairo_t *cr,
- const GdkColor *color);
-
GDK_AVAILABLE_IN_3_10
cairo_surface_t * gdk_cairo_surface_create_from_pixbuf (const GdkPixbuf *pixbuf,
int scale,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]