diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-08-30 18:21:48 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-08-30 21:23:25 -0400 |
commit | 1b6f73401960cbacf8c76f9c7411836a1ab286fd (patch) | |
tree | cfda7bc995253a138f87fe8e14464601e9e6b18a /tests/testbaseline.c | |
parent | cd284da79427ad5eea2ddd902ae5f7370dde5980 (diff) | |
download | gtk+-1b6f73401960cbacf8c76f9c7411836a1ab286fd.tar.gz |
tests: Stop using radio buttons
Use grouped check buttons.
Diffstat (limited to 'tests/testbaseline.c')
-rw-r--r-- | tests/testbaseline.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/testbaseline.c b/tests/testbaseline.c index 32915a6972..f81c937951 100644 --- a/tests/testbaseline.c +++ b/tests/testbaseline.c @@ -87,6 +87,7 @@ main (int argc, int i, j; GtkCssProvider *provider; gboolean done = FALSE; + GtkWidget *group = NULL; gtk_init (); @@ -225,10 +226,18 @@ main (int argc, gtk_widget_set_valign (button, GTK_ALIGN_BASELINE); gtk_box_append (GTK_BOX (hbox), button); - button = gtk_radio_button_new_with_label (NULL, "│Xyj,Ö"); + button = gtk_check_button_new_with_label ("│Xyj,Ö"); if (j == 0) gtk_widget_set_valign (button, GTK_ALIGN_BASELINE); gtk_box_append (GTK_BOX (hbox), button); + if (group == NULL) + { + group = button; + gtk_check_button_set_active (GTK_CHECK_BUTTON (button), TRUE); + } + else + gtk_check_button_set_group (GTK_CHECK_BUTTON (button), + GTK_CHECK_BUTTON (group)); } |