mate-desktop / mozo

Menu editor for MATE using the freedesktop.org menu specification
http://www.mate-desktop.org
GNU Lesser General Public License v2.1
28 stars 12 forks source link

When moving the highlighting moves extra step(s) in the moved direction with separators. #16

Closed sq5pgj closed 9 years ago

sq5pgj commented 9 years ago

I inserted two separators to the menu and then highlighted one of the items and pushed the move up button. The selected item has been moved but it become no longer highlighted. It becomes even more frustrating when you have two separators and want to move up the last item on the list. In case of menus without separators it looks like to be correct.

infirit commented 9 years ago

I have no problem adding separators and moving things around. Can you be more specific and list every step and where you are having problems.

sq5pgj commented 9 years ago

I attach screenshots from what I am doing. I am trying to move the last item (regexxer) of the menu up, as on screen1. I have highlighted it and then clicked the move-up button. On screen 2 you see the effect. The Item has been moved up, but the selected item is now not the regexxer but Qt5 Assistant. The highlit bar has jumped to the second item from the second separator instead of the bottom.

So I highligted the regexxer again (screen3) and pushed the move up button again. The effect is on screen4. It must be something wrong with it.

Other items, above the separators appear to behave properly...

Thank you for quick answer.

screen1 screen2 screen3 screen4

ztm commented 9 years ago

Same problem here. Inserting separators and then pressing MOVE UP/DOWN the highlighted item moves up/down but after moving, another item (depends on the number of inserted separators) gets highlighted. So moving an item with inserted separators item must be selected before every move. With no separators you just have to press the direction buttons. Another problem is that reordering the items has absolutely no effect on the Mint Menu which was my main goal for groupping my apps.

infirit commented 9 years ago

Confirmed and updated the issue description a bit.

Another problem is that reordering the items has absolutely no effect on the Mint Menu which was my main goal for groupping my apps.

You'll need to ask the mintmenu folk to take into account the menu file that is created which overrides the default. The file is ~/.config/menu/mate-applications.menu

monsta commented 9 years ago

Please try https://github.com/mate-desktop/mozo/pull/20 - it should fix the problem.