sizegroup demo: Fix a checkbutton/togglebutton mixup

This commit is contained in:
Timm Bäder 2020-09-10 05:59:11 +02:00
parent c8f4c8c4f0
commit d0f182757a

View File

@ -59,7 +59,7 @@ add_row (GtkGrid *table,
}
static void
toggle_grouping (GtkToggleButton *check_button,
toggle_grouping (GtkCheckButton *check_button,
GtkSizeGroup *size_group)
{
GtkSizeGroupMode new_mode;
@ -68,7 +68,7 @@ toggle_grouping (GtkToggleButton *check_button,
* here to show the effect of GTK_SIZE_GROUP_HORIZONTAL by
* contrast.
*/
if (gtk_toggle_button_get_active (check_button))
if (gtk_check_button_get_active (check_button))
new_mode = GTK_SIZE_GROUP_HORIZONTAL;
else
new_mode = GTK_SIZE_GROUP_NONE;