From 80ab5ea942c74e9fd6d8016f4ed81000f35669a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 4 Oct 2016 18:27:16 +0200 Subject: widget: Remove gtk_widget_get_requisition --- gtk/gtkwidget.c | 30 ------------------------------ gtk/gtkwidget.h | 5 ----- 2 files changed, 35 deletions(-) (limited to 'gtk') diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 53064cd2eb..431b62071e 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -15082,36 +15082,6 @@ gtk_widget_get_allocated_baseline (GtkWidget *widget) return widget->priv->allocated_baseline; } -/** - * gtk_widget_get_requisition: - * @widget: a #GtkWidget - * @requisition: (out): a pointer to a #GtkRequisition to copy to - * - * Retrieves the widget’s requisition. - * - * This function should only be used by widget implementations in - * order to figure whether the widget’s requisition has actually - * changed after some internal state change (so that they can call - * gtk_widget_queue_resize() instead of gtk_widget_queue_draw()). - * - * Normally, gtk_widget_size_request() should be used. - * - * Since: 2.20 - * - * Deprecated: 3.0: The #GtkRequisition cache on the widget was - * removed, If you need to cache sizes across requests and allocations, - * add an explicit cache to the widget in question instead. - */ -void -gtk_widget_get_requisition (GtkWidget *widget, - GtkRequisition *requisition) -{ - g_return_if_fail (GTK_IS_WIDGET (widget)); - g_return_if_fail (requisition != NULL); - - gtk_widget_get_preferred_size (widget, requisition, NULL); -} - /** * gtk_widget_set_window: * @widget: a #GtkWidget diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h index 6d6f0a8640..b6c2a9373b 100644 --- a/gtk/gtkwidget.h +++ b/gtk/gtkwidget.h @@ -921,11 +921,6 @@ GDK_AVAILABLE_IN_3_14 void gtk_widget_get_clip (GtkWidget *widget, GtkAllocation *clip); -GDK_DEPRECATED_IN_3_0_FOR(gtk_widget_get_preferred_width & gtk_widget_get_preferred_height) - -void gtk_widget_get_requisition (GtkWidget *widget, - GtkRequisition *requisition); - GDK_AVAILABLE_IN_ALL gboolean gtk_widget_child_focus (GtkWidget *widget, GtkDirectionType direction); -- cgit v1.2.1