forked from AuroraMiddleware/gtk
parent
d6c35ab02f
commit
dcf37412c1
@ -272,7 +272,7 @@ start_puzzle (GdkPaintable *paintable)
|
|||||||
|
|
||||||
/* Create a new grid */
|
/* Create a new grid */
|
||||||
grid = gtk_grid_new ();
|
grid = gtk_grid_new ();
|
||||||
gtk_widget_set_can_focus (grid, TRUE);
|
gtk_widget_set_focusable (grid, TRUE);
|
||||||
gtk_aspect_frame_set_child (GTK_ASPECT_FRAME (frame), grid);
|
gtk_aspect_frame_set_child (GTK_ASPECT_FRAME (frame), grid);
|
||||||
aspect_ratio = gdk_paintable_get_intrinsic_aspect_ratio (paintable);
|
aspect_ratio = gdk_paintable_get_intrinsic_aspect_ratio (paintable);
|
||||||
if (aspect_ratio == 0.0)
|
if (aspect_ratio == 0.0)
|
||||||
@ -284,7 +284,7 @@ start_puzzle (GdkPaintable *paintable)
|
|||||||
* keys to move the puzzle */
|
* keys to move the puzzle */
|
||||||
controller = gtk_shortcut_controller_new ();
|
controller = gtk_shortcut_controller_new ();
|
||||||
gtk_shortcut_controller_set_scope (GTK_SHORTCUT_CONTROLLER (controller),
|
gtk_shortcut_controller_set_scope (GTK_SHORTCUT_CONTROLLER (controller),
|
||||||
GTK_SHORTCUT_SCOPE_GLOBAL);
|
GTK_SHORTCUT_SCOPE_LOCAL);
|
||||||
add_move_binding (GTK_SHORTCUT_CONTROLLER (controller),
|
add_move_binding (GTK_SHORTCUT_CONTROLLER (controller),
|
||||||
GDK_KEY_Left, GDK_KEY_KP_Left,
|
GDK_KEY_Left, GDK_KEY_KP_Left,
|
||||||
-1, 0);
|
-1, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user