From: Matthias Clasen Date: Fri, 28 Apr 2023 19:03:30 +0000 (-0400) Subject: Deprecate gtk_widget_get_allocation X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~347^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8205c7032a66c85a302e0b27ad44bdeed535e374;p=gtk4.git Deprecate gtk_widget_get_allocation --- diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 3c7c961db5..20bb2eba25 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -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, diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h index 350dc7b573..7b39d83901 100644 --- a/gtk/gtkwidget.h +++ b/gtk/gtkwidget.h @@ -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