diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-08-06 02:00:05 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-08-06 02:00:05 +0000 |
commit | 8f7edb8a7d066e573d5c9a68512adcb897e9b126 (patch) | |
tree | 6b26350250a140a1301fb478a8b266a0709d6916 | |
parent | 66df338087fcf5f818325452734412f4f24049c4 (diff) | |
parent | dcf37412c169d66dfda8ba8160b80ac02c3cc292 (diff) | |
download | gtk+-8f7edb8a7d066e573d5c9a68512adcb897e9b126.tar.gz |
Merge branch 'fix-puzzle-keynav' into 'master'
Fix puzzle keynav
Closes #3023
See merge request GNOME/gtk!2381
-rw-r--r-- | NEWS | 38 | ||||
-rw-r--r-- | demos/gtk-demo/sliding_puzzle.c | 4 |
2 files changed, 40 insertions, 2 deletions
@@ -1,3 +1,41 @@ +Overview of Changes in GTK 3.99.1 +================================= + +* GtkGridLayout: Rename left-/top-attach to column/row + +* Drop GtkAccelLabel - it is no longer used + +* GtkTextView: + - Fix redraw issues with selections + - Make insert-emoji replace the selection + +* GtkTreeView: + - Fix selection handling in cell editables + +* CSS: + - Hexadecimal colors can now specify alpha + +* Documentation: + - Refresh the widget gallery + - Add images for new widgets to the gallery + - Fix many cross-references + +* Demos: + - Numerous crash- and bug fixes + +* Fix build with cups < 2.3 + +* win32: + - Default to the GL renderer when we can + +* Translation updates: + Catalan + Polish + Romanian + Spanish + Ukrainian + + Overview of Changes in GTK 3.99.0 ================================= diff --git a/demos/gtk-demo/sliding_puzzle.c b/demos/gtk-demo/sliding_puzzle.c index bff400b6c4..250f5983cf 100644 --- a/demos/gtk-demo/sliding_puzzle.c +++ b/demos/gtk-demo/sliding_puzzle.c @@ -272,7 +272,7 @@ start_puzzle (GdkPaintable *paintable) /* Create a new grid */ 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); aspect_ratio = gdk_paintable_get_intrinsic_aspect_ratio (paintable); if (aspect_ratio == 0.0) @@ -284,7 +284,7 @@ start_puzzle (GdkPaintable *paintable) * keys to move the puzzle */ controller = gtk_shortcut_controller_new (); gtk_shortcut_controller_set_scope (GTK_SHORTCUT_CONTROLLER (controller), - GTK_SHORTCUT_SCOPE_GLOBAL); + GTK_SHORTCUT_SCOPE_LOCAL); add_move_binding (GTK_SHORTCUT_CONTROLLER (controller), GDK_KEY_Left, GDK_KEY_KP_Left, -1, 0); |