From 5f9bc972910c8e6d7c75fbb24147614646f5e89f Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Sat, 5 Aug 2023 13:10:52 +0200 Subject: [PATCH] gi: Mark more GtkTreeModel types as deprecated They show up in rust docs as not deprecated without this --- gtk/deprecated/gtktreemodel.c | 2 ++ gtk/deprecated/gtktreemodel.h | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/gtk/deprecated/gtktreemodel.c b/gtk/deprecated/gtktreemodel.c index 7c3a390bcd..04c5cd978f 100644 --- a/gtk/deprecated/gtktreemodel.c +++ b/gtk/deprecated/gtktreemodel.c @@ -257,6 +257,8 @@ static guint tree_model_signals[LAST_SIGNAL] = { 0 }; * GtkTreePath: * * An opaque structure representing a path to a row in a model. + * + * Deprecated: 4.10 */ struct _GtkTreePath { diff --git a/gtk/deprecated/gtktreemodel.h b/gtk/deprecated/gtktreemodel.h index a3c7a56707..1d40b072a5 100644 --- a/gtk/deprecated/gtktreemodel.h +++ b/gtk/deprecated/gtktreemodel.h @@ -69,6 +69,8 @@ typedef gboolean (* GtkTreeModelForeachFunc) (GtkTreeModel *model, GtkTreePath * * static for the lifetime of the object. A more complete description * of %GTK_TREE_MODEL_ITERS_PERSIST can be found in the overview of * this section. + * + * Deprecated: 4.10 */ typedef enum { @@ -88,6 +90,8 @@ typedef enum * integer in the @stamp member, and put * model-specific data in the three @user_data * members. + * + * Deprecated: 4.10 */ struct _GtkTreeIter { @@ -251,6 +255,8 @@ gboolean gtk_tree_path_is_descendant (GtkTreePath *path, * A GtkTreeRowReference tracks model changes so that it always refers to the * same row (a `GtkTreePath` refers to a position, not a fixed row). Create a * new GtkTreeRowReference with gtk_tree_row_reference_new(). + * + * Deprecated: 4.10: Use [iface@Gio.ListModel] instead */ GDK_AVAILABLE_IN_ALL