| Summary: |
Accel keys for oh-puzzles menus are not working |
| Product: |
[Build System, Metadata & Runtime] Meta-yocto
|
Reporter: |
Manuel Teira <manuel.teira> |
| Component: |
meta-yocto | Assignee: |
Richard Purdie <richard.purdie> |
| Status: |
RESOLVED
FIXED
|
QA Contact: |
|
| Severity: |
normal
|
|
|
| Priority: |
medium
|
CC: |
poky.bs.watcher, poky.watcher
|
| Version: |
unspecified | |
|
| Target Milestone: |
--- | |
|
| Hardware: |
All | |
|
| OS: |
Multiple | |
|
| Whiteboard: |
|
|
OS type for building Yocto:
|
---
|
Type of Regression:
|
---
|
|
Verified:
|
|
Documentation change:
|
---
|
| Attachments: |
|
I think the problem is that instead using the GtkAccelGroup of the GtkUIManager in the main window, a new one is created and used, I've replaced this : fe->accelgroup = gtk_accel_group_new(); gtk_window_add_accel_group(GTK_WINDOW(fe->window), fe->accelgroup); with this: gtk_window_add_accel_group(GTK_WINDOW(fe->window), gtk_ui_manager_get_accel_group(merge)); where 'merge' is the GtkUIManager used to construct the menus of the games. It works this way. However, I'm not sure if this is the best approach, i.e. what is the created from scratch accelgroup used for? I'm attaching a patch with changes and bumped up version.