From e7ba8e7e9a539b972f8bdf4ba6f43246b15d94e1 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 29 Apr 2023 14:27:59 -0400 Subject: Deprecate gtk_widget_get_allocated_width --- gtk/gtkwidget.c | 4 ++++ gtk/gtkwidget.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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); -- cgit v1.2.1