[gtk/matthiasc/for-master] gtk-demo: Fix toggle- vs checkbutton confusion



commit cf1ed3a72a07569ddde23dab31ba0bb132af839a
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Sep 16 23:07:21 2020 -0400

    gtk-demo: Fix toggle- vs checkbutton confusion

 demos/gtk-demo/markup.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/demos/gtk-demo/markup.c b/demos/gtk-demo/markup.c
index 900436f6e7..8d19529f30 100644
--- a/demos/gtk-demo/markup.c
+++ b/demos/gtk-demo/markup.c
@@ -14,9 +14,9 @@ static GtkWidget *view;
 static GtkWidget *view2;
 
 static void
-source_toggled (GtkToggleButton *button)
+source_toggled (GtkCheckButton *button)
 {
-  if (gtk_toggle_button_get_active (button))
+  if (gtk_check_button_get_active (button))
     gtk_stack_set_visible_child_name (GTK_STACK (stack), "source");
   else
     {


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