summaryrefslogtreecommitdiff
path: root/tests/testselection.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testselection.c')
-rw-r--r--tests/testselection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testselection.c b/tests/testselection.c
index ff7a99caa6..088225e845 100644
--- a/tests/testselection.c
+++ b/tests/testselection.c
@@ -140,7 +140,7 @@ init_atoms (void)
void
selection_toggled (GtkWidget *widget)
{
- if (GTK_TOGGLE_BUTTON(widget)->active)
+ if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget)))
{
have_selection = gtk_selection_owner_set (selection_widget,
GDK_SELECTION_PRIMARY,