widget: Remove gtk_widget_region_intersect

This commit is contained in:
Timm Bäder 2016-10-04 18:14:35 +02:00 committed by Benjamin Otte
parent a80a1cf8a6
commit 4a2c087a1e
2 changed files with 0 additions and 40 deletions

View File

@ -7590,43 +7590,6 @@ gtk_widget_intersect (GtkWidget *widget,
return return_val;
}
/**
* 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 @widgets 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

View File

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