On 1/16/13 8:56 AM, ~suv wrote:
Identical issues occurring with Inkscape and Unity's global menu bar:
- 'File > Open Recent' always opens top-most entry
This one is solved: the problem stems from the fact that both osx-integration and Ubuntu unity build physical menubars with menus that proxy mouse/keyboard events to the real hidden menu. When they emit the menu event by calling
gtk_menu_item_activate ((GtkMenuItem*) menuitem);
which cascades the event the the menuitem widget that is connected to the application, nobody has yet set the "active" menuitem property in that particular menu. When gtk menubars are used directly, the active item is set immediately after the GDK event is processed. In this case, it never happens.
One we know the problem, it is an easy fix that can be put wither in gtkmacintegration or directly in gtk2. I've put it in gtkmacintegration for convenience for now.
Valerio