From 9c40e8b873b260dcf651a5f2b137c66ef7bc7d2c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 28 Apr 2023 15:19:22 -0400 Subject: [PATCH] Deprecate gtk_widget_get_allocated_baseline --- gtk/gtkwidget.c | 2 ++ gtk/gtkwidget.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index dc9cb14cf3..6590fa95b0 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -10476,6 +10476,8 @@ gtk_widget_get_allocated_height (GtkWidget *widget) * child widgets in `GtkWidget`Class.size_allocate(). * * Returns: the baseline of the @widget, or -1 if none + * + * Deprecated: 4.12: Use [method@Gtk.Widget.get_baseline] instead */ int gtk_widget_get_allocated_baseline (GtkWidget *widget) diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h index 70ddb1b91a..8ecb909135 100644 --- a/gtk/gtkwidget.h +++ b/gtk/gtkwidget.h @@ -473,7 +473,7 @@ GDK_AVAILABLE_IN_ALL int gtk_widget_get_allocated_width (GtkWidget *widget); GDK_AVAILABLE_IN_ALL int gtk_widget_get_allocated_height (GtkWidget *widget); -GDK_AVAILABLE_IN_ALL +GDK_DEPRECATED_IN_4_12_FOR(gtk_widget_get_baseline) int gtk_widget_get_allocated_baseline (GtkWidget *widget); GDK_DEPRECATED_IN_4_12_FOR(gtk_widget_compute_bounds) -- 2.30.2