[gtk/wip/baedert/for-master] sizegroup demo: Fix a checkbutton/togglebutton mixup
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master] sizegroup demo: Fix a checkbutton/togglebutton mixup
- Date: Thu, 10 Sep 2020 05:03:08 +0000 (UTC)
commit 3b2aef88437d06825c28a9f5f0a3f7ac210cdddb
Author: Timm Bäder <mail baedert org>
Date: Thu Sep 10 05:59:11 2020 +0200
sizegroup demo: Fix a checkbutton/togglebutton mixup
demos/gtk-demo/sizegroup.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/demos/gtk-demo/sizegroup.c b/demos/gtk-demo/sizegroup.c
index db8f16e105..ec90338867 100644
--- a/demos/gtk-demo/sizegroup.c
+++ b/demos/gtk-demo/sizegroup.c
@@ -59,8 +59,8 @@ add_row (GtkGrid *table,
}
static void
-toggle_grouping (GtkToggleButton *check_button,
- GtkSizeGroup *size_group)
+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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]