forked from AuroraMiddleware/gtk
sizegroup demo: Fix a checkbutton/togglebutton mixup
This commit is contained in:
parent
c8f4c8c4f0
commit
d0f182757a
@ -59,8 +59,8 @@ add_row (GtkGrid *table,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
toggle_grouping (GtkToggleButton *check_button,
|
toggle_grouping (GtkCheckButton *check_button,
|
||||||
GtkSizeGroup *size_group)
|
GtkSizeGroup *size_group)
|
||||||
{
|
{
|
||||||
GtkSizeGroupMode new_mode;
|
GtkSizeGroupMode new_mode;
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ toggle_grouping (GtkToggleButton *check_button,
|
|||||||
* here to show the effect of GTK_SIZE_GROUP_HORIZONTAL by
|
* here to show the effect of GTK_SIZE_GROUP_HORIZONTAL by
|
||||||
* contrast.
|
* contrast.
|
||||||
*/
|
*/
|
||||||
if (gtk_toggle_button_get_active (check_button))
|
if (gtk_check_button_get_active (check_button))
|
||||||
new_mode = GTK_SIZE_GROUP_HORIZONTAL;
|
new_mode = GTK_SIZE_GROUP_HORIZONTAL;
|
||||||
else
|
else
|
||||||
new_mode = GTK_SIZE_GROUP_NONE;
|
new_mode = GTK_SIZE_GROUP_NONE;
|
||||||
|
Loading…
Reference in New Issue
Block a user