summaryrefslogtreecommitdiff
path: root/tests/testselectionmode.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-08-30 19:36:27 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-08-30 21:23:25 -0400
commit2c5c938f0d2bfdc60d351142eb4afa97d055986c (patch)
treec35fddc4cc1d05bf4c39d4249bd336e33d386512 /tests/testselectionmode.c
parentcfade230ced9a28f1aefe4982790109406a6b578 (diff)
downloadgtk+-2c5c938f0d2bfdc60d351142eb4afa97d055986c.tar.gz
Clean up uses of gtk_toggle_button_get/set_active
Replace all uses on check buttons by the corresponding check button api.
Diffstat (limited to 'tests/testselectionmode.c')
-rw-r--r--tests/testselectionmode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testselectionmode.c b/tests/testselectionmode.c
index b001e253c5..823663396a 100644
--- a/tests/testselectionmode.c
+++ b/tests/testselectionmode.c
@@ -59,11 +59,11 @@ update_selected (GtkWidget *widget)
if (gtk_list_box_row_is_selected (GTK_LIST_BOX_ROW (row)))
{
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (row->check), TRUE);
+ gtk_check_button_set_active (GTK_CHECK_BUTTON (row->check), TRUE);
gtk_widget_unset_state_flags (widget, GTK_STATE_FLAG_SELECTED);
}
else
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (row->check), FALSE);
+ gtk_check_button_set_active (GTK_CHECK_BUTTON (row->check), FALSE);
}
static void