[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 60528] kate missing separators in lots of menu
From: Alexander Dymo <cloudtemple () mksat ! net>
Date: 2003-09-28 5:20:45
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=60528
------- Additional Comments From cloudtemple@mksat.net 2003-09-28 07:20 -------
For example, we have this Tools menu for KDevelop
<Menu name="tools">
<text>&Tools</text>
<DefineGroup name="tools_operations"/>
<Separator/>
<DefineGroup name="tools_file_operations"/>
<Separator/>
<DefineGroup name="tools_language_operations"/>
<Separator/>
<DefineGroup name="tools_project_operations"/>
<Separator/>
<Merge/>
</Menu>
Tools menu is filled out by Kate part and KDevelop plugins. Everything is ok for
kate part
but not for our plugins.
tools_file_operations can be filled by 3 plugins:
Filter plugin:
<Menu name="tools" >
<Action name="tools_insertshell" group="tools_file_operations"/>
<Action name="tools_filtershell" group="tools_file_operations"/>
</Menu>
Regexptest plugin:
<Menu name="tools" >
<Action name="tools_regexptest" group="tools_file_operations"/>
</Menu>
Diff plugin:
<Menu name="tools" >
<Action name="tools_diff" group="tools_file_operations"/>
</Menu>
The order of loading plugins is unknown. The number of plugins to load is unknown
too.
User can disable any of those plugins.
So I can see one problem:
I can't put the separator in one of those plugins because I don't know which
would be loaded last.
That is why I define
<DefineGroup name="tools_file_operations"/>
<Separator/>
and expect the separator to appear if there is something loaded into the group.
I've tried a workaround:
<DefineGroup name="tools_file_operations"/>
<Action name="forced_separator"/>
But it produces unnecessary separator if no plugin has loaded the menu for
tools_file_operations group.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic