mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 14:00:09 +00:00
gtk-demo: Fix toggle- vs checkbutton confusion
This commit is contained in:
parent
18e46bd6f8
commit
cf1ed3a72a
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user