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



commit 2c3ac6d90516455f4282cf5c6af323f50638c59c
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]