Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-02-17 21:25:52 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-02-17 21:27:14 +0300
commit07ba8b96e55bfd4ef8e9d2d5425fdfefe642df46 (patch)
tree02869d0f6c276607dfd6205eb0a92eff85bc0edc /release/scripts
parent7e73b6aa25221697375aa4ae9d231be5b3233677 (diff)
Tweak to new UIList bookmarks & co: extend up to ten entries before using scrollbars.
But again, what we really need to fix is UI saving for that temp area...
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/startup/bl_ui/space_filebrowser.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_ui/space_filebrowser.py b/release/scripts/startup/bl_ui/space_filebrowser.py
index bdd8a107197..841e169b080 100644
--- a/release/scripts/startup/bl_ui/space_filebrowser.py
+++ b/release/scripts/startup/bl_ui/space_filebrowser.py
@@ -122,8 +122,7 @@ class FILEBROWSER_PT_system_folders(Panel):
if space.system_folders:
row = layout.row()
row.template_list("FILEBROWSER_UL_dir", "system_folders", space, "system_folders",
- space, "system_folders_active", item_dyntip_propname="path", rows=1, maxrows=6)
-
+ space, "system_folders_active", item_dyntip_propname="path", rows=1, maxrows=10)
class FILEBROWSER_PT_system_bookmarks(Panel):
bl_space_type = 'FILE_BROWSER'
@@ -142,7 +141,7 @@ class FILEBROWSER_PT_system_bookmarks(Panel):
if space.system_bookmarks:
row = layout.row()
row.template_list("FILEBROWSER_UL_dir", "system_bookmarks", space, "system_bookmarks",
- space, "system_bookmarks_active", item_dyntip_propname="path", rows=1, maxrows=6)
+ space, "system_bookmarks_active", item_dyntip_propname="path", rows=1, maxrows=10)
class FILEBROWSER_MT_bookmarks_specials(Menu):
@@ -172,7 +171,7 @@ class FILEBROWSER_PT_bookmarks(Panel):
num_rows = len(space.bookmarks)
row.template_list("FILEBROWSER_UL_dir", "bookmarks", space, "bookmarks",
space, "bookmarks_active", item_dyntip_propname="path",
- rows=(2 if num_rows < 2 else 4), maxrows=6)
+ rows=(2 if num_rows < 2 else 4), maxrows=10)
col = row.column(align=True)
col.operator("file.bookmark_add", icon='ZOOMIN', text="")
@@ -204,7 +203,7 @@ class FILEBROWSER_PT_recent_folders(Panel):
if space.recent_folders:
row = layout.row()
row.template_list("FILEBROWSER_UL_dir", "recent_folders", space, "recent_folders",
- space, "recent_folders_active", item_dyntip_propname="path", rows=1, maxrows=6)
+ space, "recent_folders_active", item_dyntip_propname="path", rows=1, maxrows=10)
col = row.column(align=True)
col.operator("file.reset_recent", icon='X', text="")