gtk-demo: Fix the sliding puzzle
authorMatthias Clasen <mclasen@redhat.com>
Sat, 28 Mar 2020 04:06:14 +0000 (00:06 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 28 Mar 2020 04:08:12 +0000 (00:08 -0400)
Update for a change in gtk_shortcut_controller_add_shortcut
behavior.

demos/gtk-demo/sliding_puzzle.c

index 5dcc0351bc81d6c0fd8174fab09850a87ee107ce..2a606fc2fcf26918a2a7f3394d6a1574f8f9e7d6 100644 (file)
@@ -257,7 +257,6 @@ add_move_binding (GtkShortcutController *controller,
                  gtk_callback_action_new (puzzle_key_pressed, NULL, NULL),
                  "(ii)", dx, dy);
   gtk_shortcut_controller_add_shortcut (controller, shortcut);
-  g_object_unref (shortcut);
 }
 
 static void