From 8e0ba378664d5b385410aa4497473fc6927efe40 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 31 May 2020 11:02:36 -0400 Subject: [PATCH] gtk-demo: Fixes for the sliding puzzle We were calling check_solved only for key presses, meaning you could never solve the puzzle with the mouse. --- demos/gtk-demo/sliding_puzzle.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/demos/gtk-demo/sliding_puzzle.c b/demos/gtk-demo/sliding_puzzle.c index a6605514eb..3f1a7c3092 100644 --- a/demos/gtk-demo/sliding_puzzle.c +++ b/demos/gtk-demo/sliding_puzzle.c @@ -251,6 +251,8 @@ puzzle_button_pressed (GtkGestureClick *gesture, { gtk_widget_error_bell (grid); } + + check_solved (grid); } static void