Deprecate gtk_widget_get_allocation

This commit is contained in:
Matthias Clasen 2023-04-28 15:03:30 -04:00
parent ba379c928b
commit 8205c7032a
2 changed files with 3 additions and 1 deletions

View 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,

View 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