[gtk+/wip/otte/gtk4: 90/118] widget: Remove gtk_widget_region_intersect
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/otte/gtk4: 90/118] widget: Remove gtk_widget_region_intersect
- Date: Fri, 7 Oct 2016 00:07:15 +0000 (UTC)
commit 4bd5ecd47896e844fa2be0c2f60f5466971f48b8
Author: Timm Bäder <mail baedert org>
Date: Tue Oct 4 18:14:35 2016 +0200
widget: Remove gtk_widget_region_intersect
gtk/gtkwidget.c | 37 -------------------------------------
gtk/gtkwidget.h | 3 ---
2 files changed, 0 insertions(+), 40 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index afc6e27..57113d6 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -7589,43 +7589,6 @@ gtk_widget_intersect (GtkWidget *widget,
}
/**
- * gtk_widget_region_intersect:
- * @widget: a #GtkWidget
- * @region: a #cairo_region_t, in the same coordinate system as
- * @widget->allocation. That is, relative to @widget->window
- * for widgets which return %FALSE from gtk_widget_get_has_window();
- * relative to the parent window of @widget->window otherwise.
- *
- * Computes the intersection of a @widget’s area and @region, returning
- * the intersection. The result may be empty, use cairo_region_is_empty() to
- * check.
- *
- * Returns: A newly allocated region holding the intersection of @widget
- * and @region.
- *
- * Deprecated: 3.14: Use gtk_widget_get_allocation() and
- * cairo_region_intersect_rectangle() to get the same behavior.
- */
-cairo_region_t *
-gtk_widget_region_intersect (GtkWidget *widget,
- const cairo_region_t *region)
-{
- GdkRectangle rect;
- cairo_region_t *dest;
-
- g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
- g_return_val_if_fail (region != NULL, NULL);
-
- _gtk_widget_get_allocation (widget, &rect);
-
- dest = cairo_region_create_rectangle (&rect);
-
- cairo_region_intersect (dest, region);
-
- return dest;
-}
-
-/**
* _gtk_widget_grab_notify:
* @widget: a #GtkWidget
* @was_grabbed: whether a grab is now in effect
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index 3de40b8..932bbf5 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -748,9 +748,6 @@ GDK_AVAILABLE_IN_ALL
gboolean gtk_widget_intersect (GtkWidget *widget,
const GdkRectangle *area,
GdkRectangle *intersection);
-GDK_DEPRECATED_IN_3_14
-cairo_region_t *gtk_widget_region_intersect (GtkWidget *widget,
- const cairo_region_t *region);
GDK_AVAILABLE_IN_ALL
void gtk_widget_freeze_child_notify (GtkWidget *widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]