Deprecate gtk_widget_get_allocation
authorMatthias Clasen <mclasen@redhat.com>
Fri, 28 Apr 2023 19:03:30 +0000 (15:03 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 28 Apr 2023 19:05:39 +0000 (15:05 -0400)
gtk/gtkwidget.c
gtk/gtkwidget.h

index 3c7c961db5c65add62ae82429ce084f86b9b0d03..20bb2eba2566c5a269774ba4632df1993e052a53 100644 (file)
@@ -10092,6 +10092,8 @@ gtk_widget_get_has_tooltip (GtkWidget *widget)
  * So a layout container is guaranteed that its children stay inside
  * the assigned bounds, but not that they have exactly the bounds the
  * container assigned.
+ *
+ * Deprecated: 4.12: Use [method@Gtk.Widget.compute_bounds] or [method@Gtk.Widget.get_width] instead
  */
 void
 gtk_widget_get_allocation (GtkWidget     *widget,
index 350dc7b5739405d3add48695877868691348aca1..7b39d839015f74c00773a60d4bb976fe57c2b931 100644 (file)
@@ -476,7 +476,7 @@ int                   gtk_widget_get_allocated_height   (GtkWidget     *widget);
 GDK_AVAILABLE_IN_ALL
 int                   gtk_widget_get_allocated_baseline (GtkWidget     *widget);
 
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_4_12_FOR(gtk_widget_compute_bounds)
 void                  gtk_widget_get_allocation         (GtkWidget     *widget,
                                                          GtkAllocation *allocation);
 GDK_AVAILABLE_IN_ALL