summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-04-16 08:50:35 +0200
committerMatthias Clasen <mclasen@redhat.com>2023-04-16 08:50:35 +0200
commitc57e5811f1dabcb6f46082ee97a12e18f1c8f033 (patch)
treeef3db20f4a5711cdc1dcd2a2fb2aa8ec250880dd /testsuite
parent940a2b6923fa0c2ee46f1de8387dea332b5bbba9 (diff)
downloadgtk+-c57e5811f1dabcb6f46082ee97a12e18f1c8f033.tar.gz
tests: Check is-focus instead of has-focus
We are not presenting windows here.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gtk/builder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/gtk/builder.c b/testsuite/gtk/builder.c
index 090d89378d..7ffb8455a8 100644
--- a/testsuite/gtk/builder.c
+++ b/testsuite/gtk/builder.c
@@ -1641,7 +1641,7 @@ test_widget (void)
builder = builder_new_from_string (buffer, -1, NULL);
button1 = gtk_builder_get_object (builder, "button1");
- g_assert_true (gtk_widget_has_focus (GTK_WIDGET (button1)));
+ g_assert_true (gtk_widget_is_focus (GTK_WIDGET (button1)));
window1 = gtk_builder_get_object (builder, "window1");
gtk_window_destroy (GTK_WINDOW (window1));