Xfce Forum

Sub domains
 

You are not logged in.

#1 2014-08-23 17:22:52

ltwilliams58
Member
Registered: 2014-08-23
Posts: 3

[Solved] (How) Can I Add A Deeper Submenu Level?

OK, I know I botched the title, so here's the longer one: I want to create an additional submenu level in my custom applications menu. I already have a local customized menu file with at least one submenu identified, and simply adding a <Menuname> into the <Menu> descriptor doesn't work.

I would like to end up with something like this:

Panel Button
  |
  -- Menu
     |
     |- Menu Item
     |
     -- Sub Menu
        |
        -- Menu Item

Is that possible?

Thanks in advance for any responses and/or moderation

Offline

#2 2014-08-23 18:50:29

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,000

Re: [Solved] (How) Can I Add A Deeper Submenu Level?

You would just embed another <Menu></Menu> section within an existing <Menu></Menu> section. For example, in the snippet below, I've moved the Games menu into the Development menu and the Development menu into the Accessories menu:

<Menu>
        <Name>Accessories</Name>
        <Directory>xfce-accessories.directory</Directory>
        <Include>
            <Or>
                <Category>Accessibility</Category>
                <Category>Core</Category>
                <Category>Legacy</Category>
                <Category>Utility</Category>
            </Or>
        </Include>
        <Exclude>
            <Or>
                <Filename>exo-file-manager.desktop</Filename>
                <Filename>exo-terminal-emulator.desktop</Filename>
                <Filename>xfce4-about.desktop</Filename>
                <Filename>xfce4-run.desktop</Filename>
            </Or>
        </Exclude>	

	<Menu>
            <Name>Development</Name>
            <Directory>xfce-development.directory</Directory>
            <Include>
                <Category>Development</Category>
            </Include>

	    <Menu>
        	<Name>Games</Name>
        	<Directory>xfce-games.directory</Directory>
        	<Include>
        	    <Category>Game</Category>
        	</Include>

        </Menu>
     </Menu>
</Menu>

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2014-08-23 18:54:01

ltwilliams58
Member
Registered: 2014-08-23
Posts: 3

Re: [Solved] (How) Can I Add A Deeper Submenu Level?

Oh, Awesome. Thanks for the quick reply

Offline

Board footer

Powered by FluxBB