Sugar-toolkit: Pack page in ToolbarButton when is connected to the window - OLPC #10930
To add the accelerator to the ToolButton the activity must have set the 'sugar-accel-group' before. The patch does make the ToolbarButton listen to the 'hierarchy-changed' signal and repack itself accordingly. Since the ToolButtons of the subtoolbar do listen to 'hierarchy-changed' as well to set the accelerator they will set it accordingly. This fixes the accelerators for new-style-toolbar activities like Terminal, TurtleArt and Paint, more info in #10930. Signed-by-off: Gonzalo Odiard <gonzalo@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>master
parent
10580fc2a7
commit
880e60bdda
Loading…
Reference in New Issue