summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-31 11:02:36 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-31 13:01:17 -0400
commit8e0ba378664d5b385410aa4497473fc6927efe40 (patch)
tree642ac17d39904eb245f048eaa0c54e2401d78634
parent8780f50e7ef7e1dc847611eef5201134beeead4e (diff)
downloadgtk+-8e0ba378664d5b385410aa4497473fc6927efe40.tar.gz
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.
-rw-r--r--demos/gtk-demo/sliding_puzzle.c2
1 files changed, 2 insertions, 0 deletions
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