[gtk] render: Remove gtk_render_background_get_clip
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] render: Remove gtk_render_background_get_clip
- Date: Sun, 26 Jan 2020 17:30:09 +0000 (UTC)
commit 942a93250a5227a051017737873b7d40f24b9e59
Author: Timm Bäder <mail baedert org>
Date: Sat Jan 25 16:20:00 2020 +0100
render: Remove gtk_render_background_get_clip
docs/reference/gtk/gtk4-sections.txt | 1 -
gtk/gtkrender.c | 31 -------------------------------
gtk/gtkrender.h | 8 --------
3 files changed, 40 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 7e5cf04421..b65c83fde4 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -4895,7 +4895,6 @@ gtk_border_free
<SUBSECTION>
gtk_render_arrow
gtk_render_background
-gtk_render_background_get_clip
gtk_render_check
gtk_render_expander
gtk_render_focus
diff --git a/gtk/gtkrender.c b/gtk/gtkrender.c
index c097b4d14b..840aaa0742 100644
--- a/gtk/gtkrender.c
+++ b/gtk/gtkrender.c
@@ -209,37 +209,6 @@ gtk_render_background (GtkStyleContext *context,
gsk_render_node_unref (node);
}
-/**
- * gtk_render_background_get_clip:
- * @context: a #GtkStyleContext
- * @x: X origin of the rectangle
- * @y: Y origin of the rectangle
- * @width: rectangle width
- * @height: rectangle height
- * @out_clip: (out): return location for the clip
- *
- * Returns the area that will be affected (i.e. drawn to) when
- * calling gtk_render_background() for the given @context and
- * rectangle.
- */
-void
-gtk_render_background_get_clip (GtkStyleContext *context,
- gdouble x,
- gdouble y,
- gdouble width,
- gdouble height,
- GdkRectangle *out_clip)
-{
- GtkBorder shadow;
-
- gtk_css_shadow_value_get_extents (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_BOX_SHADOW),
&shadow);
-
- out_clip->x = floor (x) - shadow.left;
- out_clip->y = floor (y) - shadow.top;
- out_clip->width = ceil (width) + shadow.left + shadow.right;
- out_clip->height = ceil (height) + shadow.top + shadow.bottom;
-}
-
/**
* gtk_render_frame:
* @context: a #GtkStyleContext
diff --git a/gtk/gtkrender.h b/gtk/gtkrender.h
index 65390dc101..645e7d6c15 100644
--- a/gtk/gtkrender.h
+++ b/gtk/gtkrender.h
@@ -60,14 +60,6 @@ void gtk_render_background (GtkStyleContext *context,
gdouble width,
gdouble height);
-GDK_AVAILABLE_IN_ALL
-void gtk_render_background_get_clip (GtkStyleContext *context,
- gdouble x,
- gdouble y,
- gdouble width,
- gdouble height,
- GdkRectangle *out_clip);
-
GDK_AVAILABLE_IN_ALL
void gtk_render_frame (GtkStyleContext *context,
cairo_t *cr,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]