From: Matthias Clasen Date: Sat, 29 Apr 2023 18:27:59 +0000 (-0400) Subject: Deprecate gtk_widget_get_allocated_width X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~334^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e7ba8e7e9a539b972f8bdf4ba6f43246b15d94e1;p=gtk4.git Deprecate gtk_widget_get_allocated_width --- diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 785e86c17d..4ff39d1c12 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -10436,6 +10436,8 @@ gtk_widget_compute_bounds (GtkWidget *widget, * system [overview](coordinates.html). * * Returns: the width of the @widget + * + * Deprecated: 4.12: Use [method@Gtk.Widget.get_width] instead */ int gtk_widget_get_allocated_width (GtkWidget *widget) @@ -10459,6 +10461,8 @@ gtk_widget_get_allocated_width (GtkWidget *widget) * system [overview](coordinates.html). * * Returns: the height of the @widget + * + * Deprecated: 4.12: Use [method@Gtk.Widget.get_height] instead */ int gtk_widget_get_allocated_height (GtkWidget *widget) diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h index 8ecb909135..cf6c4b2eef 100644 --- a/gtk/gtkwidget.h +++ b/gtk/gtkwidget.h @@ -469,9 +469,9 @@ void gtk_widget_set_child_visible (GtkWidget *widget, GDK_AVAILABLE_IN_ALL gboolean gtk_widget_get_child_visible (GtkWidget *widget); -GDK_AVAILABLE_IN_ALL +GDK_DEPRECATED_IN_4_12_FOR(gtk_widget_get_width) int gtk_widget_get_allocated_width (GtkWidget *widget); -GDK_AVAILABLE_IN_ALL +GDK_DEPRECATED_IN_4_12_FOR(gtk_widget_get_height) int gtk_widget_get_allocated_height (GtkWidget *widget); GDK_DEPRECATED_IN_4_12_FOR(gtk_widget_get_baseline) int gtk_widget_get_allocated_baseline (GtkWidget *widget);