GNOME Bugzilla – Bug 721119
GtkMenuTracker: tweak separator logic
Last modified: 2014-01-04 23:22:51 UTC
Ignacio Casal Quinteiro reported a problem whereby an empty section at the start of a menu has a separator placed after it. This was caused by the implementation of the logic that separators should be inserted at the top of all non-empty sections that are not the first section. This logic is obviously incorrect in the case that the first section is empty (in which case we would not expect to see a separator at the top of the second section). Change the logic so that we only insert separators when we see a non-zero number of actual items in the menu before us.
Created attachment 264923 [details] [review] GtkMenuTracker: tweak separator logic
It works for me.
Attachment 264923 [details] pushed as ba09124 - GtkMenuTracker: tweak separator logic
Thanks a lot!