[gtk+/wip/otte/gtk4: 93/118] widget: Remove gtk_widget_get_requisition



commit bbe74e4cb39d25d2e2dcc84258b12c6956fe1ac2
Author: Timm Bäder <mail baedert org>
Date:   Tue Oct 4 18:27:16 2016 +0200

    widget: Remove gtk_widget_get_requisition

 docs/reference/gtk/gtk3-sections.txt |    1 -
 gtk/gtkwidget.c                      |   30 ------------------------------
 gtk/gtkwidget.h                      |    5 -----
 3 files changed, 0 insertions(+), 36 deletions(-)
---
diff --git a/docs/reference/gtk/gtk3-sections.txt b/docs/reference/gtk/gtk3-sections.txt
index ee967c9..e3e9f10 100644
--- a/docs/reference/gtk/gtk3-sections.txt
+++ b/docs/reference/gtk/gtk3-sections.txt
@@ -5247,7 +5247,6 @@ gtk_widget_set_realized
 gtk_widget_get_realized
 gtk_widget_set_mapped
 gtk_widget_get_mapped
-gtk_widget_get_requisition
 gtk_widget_device_is_shadowed
 gtk_widget_get_modifier_mask
 gtk_widget_insert_action_group
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 2c16227..5046206 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -15081,36 +15081,6 @@ gtk_widget_get_allocated_baseline (GtkWidget *widget)
 }
 
 /**
- * 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
  * @window: (transfer full): a #GdkWindow
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index 6d6f0a8..b6c2a93 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]