Get rid of warnings on view categories with more than 9 views (yes, I have a category with 16 views)
svn: r14291
This commit is contained in:
parent
4c96566671
commit
8af314298e
@ -939,10 +939,15 @@ class ViewManager(CLIManager):
|
|||||||
uimenuitems += '\n<menuitem action="%s"/>' % pageid
|
uimenuitems += '\n<menuitem action="%s"/>' % pageid
|
||||||
uitoolitems += '\n<toolitem action="%s"/>' % pageid
|
uitoolitems += '\n<toolitem action="%s"/>' % pageid
|
||||||
# id, stock, button text, UI, tooltip, page
|
# id, stock, button text, UI, tooltip, page
|
||||||
|
if nrpage < 9 * 3:
|
||||||
|
modifier = ["<CONTROL>",
|
||||||
|
"<ALT>",
|
||||||
|
"<CONTROL><ALT>"][int(nrpage / 9)] + str((nrpage % 9) + 1)
|
||||||
|
else:
|
||||||
|
modifier = ""
|
||||||
self.view_toggle_actions[indexcat].append((pageid,
|
self.view_toggle_actions[indexcat].append((pageid,
|
||||||
page.get_viewtype_stock(),
|
page.get_viewtype_stock(),
|
||||||
pdata.name, '<CONTROL>%i' % (nrpage+1), page_title,
|
pdata.name, modifier, page_title, nrpage))
|
||||||
nrpage))
|
|
||||||
|
|
||||||
nrpage += 1
|
nrpage += 1
|
||||||
if nr_views > 1:
|
if nr_views > 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user