You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

pgilliam

Beginner

  • "pgilliam" started this thread

Posts: 2

Location: Beaverton OR

Occupation: Linux Bug Hunter for IBM

  • Send private message

1

Thursday, March 15th 2007, 9:58pm

KMenu fails when submenu has single item.

Let's assume that A-A, A-B and A-C all are the submenu of menu A in K Menu. If the menu editor is used to remove A-B and A-C so there remains only A-A as the submenu of A, then when you check K Menu, you will
see menu A's icon has been changed to A-A's, but the name is still A. When you click A from the K Menu, it will launch A-A application.

For example:
1. Select K Menu->Tools->Archiving, you will see 2 submenu items, File Roller
and Ark
2. Then remove File Roller from Archiving (leaving only Ark there) by using the KDE Menu Editor;, save the change.
3. Now check K Menu->Tools->Archiving again, you will see
- Archiving's icon changed to Ark's
- Archiving doesn't show Ark submenu item
- Click Archiving, it launchs Ark application

I am tring to debug this, but havn't looked at this code before. I see that the actual menu structer is stored in an XMLish file, and it has the correct structure, so the bug has to be in KMenu, not the editor.

So I am looking for the source to KMenu... can someone give me a pointer or two?

Thanks,
-=# Paul Gilliam #=-

2

Friday, March 16th 2007, 12:20am

I think that it is not a bug, but a feature.

kmenu follows the XDG guidelines, you can find some information about it in the kde user guide and on http://freedesktop.org
Help mee om KDE 3.5.5 in het Nederlands te vertalen

pgilliam

Beginner

  • "pgilliam" started this thread

Posts: 2

Location: Beaverton OR

Occupation: Linux Bug Hunter for IBM

  • Send private message

3

Friday, March 16th 2007, 4:24pm

Rinse, I can see how it might be a feature if it was fully implimented. But the only the icon for the leaf item is promoted, not it's label.

It's like the design was to promote the leaf item, but it was only half implimented.

Thanks for the pointers to the documentation... I really need pointers to the source. I found the XDG stuff which looks like a couple of perl scripts. I would like to see how this is tied into the K-Menu button.

Thanks,
-=# Paul Gilliam #=-