Bug 46

Summary: Accel keys for oh-puzzles menus are not working
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Manuel Teira <manuel.teira>
Component: meta-yoctoAssignee: 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:
Description Flags
Patch changing the accel group and bumping up version of the recipe none

Description Manuel Teira 2008-01-24 20:24:25 UTC
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.
Comment 1 Manuel Teira 2008-01-24 20:25:20 UTC
Created attachment 448 [details]
arrow right
Comment 2 Richard Purdie 2008-04-08 15:09:03 UTC
The patch looks correct and I've applied it to oh-puzzles svn (r23), thanks.