GNOME Bugzilla – Bug 91250
Unnecessary calls to gtk_widget_child_focus() when menu is displayed
Last modified: 2011-02-04 16:11:52 UTC
When a menu is shown, calls to gtk_widget_child_focus() are made for each menu item in an attempt to focus a child of the window containing the GtkMenu. This is pointless as a menu item does not focus.
Created attachment 10598 [details] [review] Proposed patch
What's the harm of the extra calls? Is it really a measurable performance issue? (Trying to avoid adding code as much as possible, since code bloat is the ultimate performance and maintainability killer, though certainly this is a small patch.)
I do not have a measure of the improvement. I felt that avoiding the pointless emission of a signal for every menu item in the menu was worth the effort.
Go ahead and apply the patch to HEAD - I'm not entirely convinced that it is useful, but it won't hurt.
Patch applied to HEAD.