summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-10-03 22:45:52 -0400
committerMatthias Clasen <mclasen@redhat.com>2022-10-03 23:23:56 -0400
commit7e9ca5b41d522473941c5fb7017c8f1b9037c571 (patch)
treeecacd2d8e65e17d1cf0742c1e7ef68d564286348 /tests
parenta527a4d82ede02019b30626a89ca9775da22d382 (diff)
downloadgtk+-7e9ca5b41d522473941c5fb7017c8f1b9037c571.tar.gz
Deprecate GtkEntryCompletion
We want to drop cell renderers and tree models in GTK 5. The functionality of GtkEntryCompletion may be replaced by a new widget in GTK 5.
Diffstat (limited to 'tests')
-rw-r--r--tests/testentrycompletion.c2
-rw-r--r--tests/testgtk.c6
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/testentrycompletion.c b/tests/testentrycompletion.c
index a62b40978d..8f0253b73b 100644
--- a/tests/testentrycompletion.c
+++ b/tests/testentrycompletion.c
@@ -21,6 +21,8 @@
#include <string.h>
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
/* Don't copy this bad example; inline RGB data is always a better
* idea than inline XPMs.
*/
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 1b8cbf4cbe..6de750e9b3 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -2934,11 +2934,17 @@ create_cursors (GtkWidget *widget)
gtk_box_append (GTK_BOX (hbox), label);
entry = gtk_entry_new ();
+
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
completion = gtk_entry_completion_new ();
model = cursor_model ();
gtk_entry_completion_set_model (completion, model);
gtk_entry_completion_set_text_column (completion, 0);
gtk_entry_set_completion (GTK_ENTRY (entry), completion);
+
+G_GNUC_END_IGNORE_DEPRECATIONS
+
g_object_unref (model);
gtk_widget_set_hexpand (entry, TRUE);
gtk_box_append (GTK_BOX (hbox), entry);