summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-11-29 11:14:26 +0100
committerTimm Bäder <mail@baedert.org>2018-11-29 11:14:26 +0100
commit904fd5f1fc045c547eb970ea9572ca608300a373 (patch)
tree9c3a42223b044319f8c2dc616ecbda85f704b63a
parentf598836d6c3c4831b59c412b58634ce8e8046ad0 (diff)
downloadgtk+-904fd5f1fc045c547eb970ea9572ca608300a373.tar.gz
Remove gtk_widget_intersect
It's been broken for quite a while now and doesn't make sense anymore these days.
-rw-r--r--docs/reference/gtk/gtk4-sections.txt1
-rw-r--r--gtk/gtkwidget.c43
-rw-r--r--gtk/gtkwidget.h5
3 files changed, 0 insertions, 49 deletions
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index a8a26eb926..2e24ff6f3d 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -4421,7 +4421,6 @@ gtk_widget_list_accel_closures
gtk_widget_can_activate_accel
gtk_widget_event
gtk_widget_activate
-gtk_widget_intersect
gtk_widget_is_focus
gtk_widget_grab_focus
gtk_widget_grab_default
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index da34d57020..4fadd96534 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -5254,49 +5254,6 @@ gtk_widget_activate (GtkWidget *widget)
}
/**
- * gtk_widget_intersect:
- * @widget: a #GtkWidget
- * @area: a rectangle
- * @intersection: (out caller-allocates) (optional): rectangle to store
- * intersection of @widget and @area
- *
- * Computes the intersection of a @widget’s area and @area, storing
- * the intersection in @intersection, and returns %TRUE if there was
- * an intersection. @intersection may be %NULL if you’re only
- * interested in whether there was an intersection.
- *
- * Returns: %TRUE if there was an intersection
- **/
-gboolean
-gtk_widget_intersect (GtkWidget *widget,
- const GdkRectangle *area,
- GdkRectangle *intersection)
-{
- GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
- GdkRectangle *dest;
- GdkRectangle tmp;
- gint return_val;
-
- g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE);
- g_return_val_if_fail (area != NULL, FALSE);
-
- if (intersection)
- dest = intersection;
- else
- dest = &tmp;
-
- return_val = gdk_rectangle_intersect (&priv->allocation, area, dest);
-
- if (return_val && intersection && _gtk_widget_get_has_surface (widget))
- {
- intersection->x -= priv->allocation.x;
- intersection->y -= priv->allocation.y;
- }
-
- return return_val;
-}
-
-/**
* _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 44e779c71a..5d6236ea8a 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -459,11 +459,6 @@ GDK_AVAILABLE_IN_ALL
gboolean gtk_widget_activate (GtkWidget *widget);
GDK_AVAILABLE_IN_ALL
-gboolean gtk_widget_intersect (GtkWidget *widget,
- const GdkRectangle *area,
- GdkRectangle *intersection);
-
-GDK_AVAILABLE_IN_ALL
void gtk_widget_freeze_child_notify (GtkWidget *widget);
GDK_AVAILABLE_IN_ALL
void gtk_widget_child_notify (GtkWidget *widget,