[gtk/matthiasc/for-master: 6/6] gtk-demo: Fixes for the sliding puzzle



commit 8e0ba378664d5b385410aa4497473fc6927efe40
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun May 31 11:02:36 2020 -0400

    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


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