[hafqa] [hafqa] [Bug 2281] Accelerator Labels not shown in menus created with GtkUIManager

From: bugzilla-daemon at lists.maemo.org bugzilla-daemon at lists.maemo.org
Date: Wed Feb 13 11:35:10 EET 2008
https://bugs.maemo.org/show_bug.cgi?id=2281





------- Comment #8 from mitch at imendio.com  2008-02-13 11:35 GMT+3 -------
Thank you. That looks entirely normal. I'm actually more interested in
the XML now since i remembered there is this code in gtkuimanager.c:

          if (in_popup) 
            {
              /* don't show accels in popups */
              GtkWidget *label = GTK_BIN (info->proxy)->child;
              g_object_set (label, "accel-closure", NULL, NULL);
            }

So if you create your menu with <popup> (which you most likely do
since nobody needs a menubar on the device), it will definitely not
show accels. Can you confirm this?

There is the workaround to have a dummy <menubar> around a normal
<menu> (that's what we do in GIMP and it works), but I think since
many apps will have this problem we need a nicer solution here.


-- 
Configure bugmail: https://bugs.maemo.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the hafqa mailing list