[Bf-blender-cvs] [07ba8b9] master: Tweak to new UIList bookmarks & co: extend up to ten entries before using scrollbars.

Bastien Montagne noreply at git.blender.org
Tue Feb 17 19:33:08 CET 2015


Commit: 07ba8b96e55bfd4ef8e9d2d5425fdfefe642df46
Author: Bastien Montagne
Date:   Tue Feb 17 19:25:52 2015 +0100
Branches: master
https://developer.blender.org/rB07ba8b96e55bfd4ef8e9d2d5425fdfefe642df46

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...

===================================================================

M	release/scripts/startup/bl_ui/space_filebrowser.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_filebrowser.py b/release/scripts/startup/bl_ui/space_filebrowser.py
index bdd8a10..841e169 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="")




More information about the Bf-blender-cvs mailing list