[gnome-builder/wip/gtk4-port] libide/greeter: fix invalid casts



commit 9279bb5ec5c4d81d1ccdcfcd67eae623d5c4fd37
Author: Christian Hergert <chergert redhat com>
Date:   Wed Mar 30 23:58:16 2022 -0700

    libide/greeter: fix invalid casts

 src/libide/greeter/ide-greeter-row.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libide/greeter/ide-greeter-row.c b/src/libide/greeter/ide-greeter-row.c
index 900740f3c..1152201ff 100644
--- a/src/libide/greeter/ide-greeter-row.c
+++ b/src/libide/greeter/ide-greeter-row.c
@@ -101,7 +101,7 @@ ide_greeter_row_get_property (GObject    *object,
 
     case PROP_SELECTED:
       g_value_set_boolean (value,
-                           gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->check_button)));
+                           gtk_check_button_get_active (GTK_CHECK_BUTTON (priv->check_button)));
       break;
 
     default:
@@ -125,8 +125,8 @@ ide_greeter_row_set_property (GObject      *object,
       break;
 
     case PROP_SELECTED:
-      gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->check_button),
-                                    g_value_get_boolean (value));
+      gtk_check_button_set_active (GTK_CHECK_BUTTON (priv->check_button),
+                                   g_value_get_boolean (value));
       break;
 
     default:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]