diff options
author | Matthias Clasen <mclasen@redhat.com> | 2023-04-29 14:27:59 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2023-04-29 14:30:21 -0400 |
commit | e7ba8e7e9a539b972f8bdf4ba6f43246b15d94e1 (patch) | |
tree | b87d00505380b18c42f8774dface50206049bed4 | |
parent | 14279785e6087fa74646a404fe551635f560eaa4 (diff) | |
download | gtk+-e7ba8e7e9a539b972f8bdf4ba6f43246b15d94e1.tar.gz |
Deprecate gtk_widget_get_allocated_width
-rw-r--r-- | gtk/gtkwidget.c | 4 | ||||
-rw-r--r-- | 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); |