Bug 46 - Accel keys for oh-puzzles menus are not working
Summary: Accel keys for oh-puzzles menus are not working
Status: RESOLVED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: unspecified
Hardware: All Multiple
: medium normal
Target Milestone: ---
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2008-01-24 20:24 UTC by Manuel Teira
Modified: 2010-12-21 06:07 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
Patch changing the accel group and bumping up version of the recipe (1.57 KB, patch)
2008-01-24 20:25 UTC, Manuel Teira
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.