[Bf-blender-cvs] [a9ae14c] master: OSX: Change the FS_CATEGORY_SYSTEM_BOOKMARKS aka "Favorites", so that the orderwise in sync with finder

Jens Verwiebe noreply at git.blender.org
Fri Oct 3 21:02:08 CEST 2014


Commit: a9ae14c480e3ba1faf5fafe89bd4edb3b361b953
Author: Jens Verwiebe
Date:   Fri Oct 3 21:01:48 2014 +0200
Branches: master
https://developer.blender.org/rBa9ae14c480e3ba1faf5fafe89bd4edb3b361b953

OSX: Change the FS_CATEGORY_SYSTEM_BOOKMARKS aka "Favorites", so that the orderwise in sync with finder

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

M	source/blender/editors/space_file/fsmenu.c
M	source/blender/editors/space_file/fsmenu.h

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

diff --git a/source/blender/editors/space_file/fsmenu.c b/source/blender/editors/space_file/fsmenu.c
index d049a45..bfbe61d 100644
--- a/source/blender/editors/space_file/fsmenu.c
+++ b/source/blender/editors/space_file/fsmenu.c
@@ -443,7 +443,7 @@ void fsmenu_read_system(struct FSMenu *fsmenu, int read_bookmarks)
 				
 				if (pathString == NULL || !CFStringGetCString(pathString, line, sizeof(line), kCFStringEncodingASCII))
 					continue;
-				fsmenu_insert_entry(fsmenu, FS_CATEGORY_SYSTEM_BOOKMARKS, line, FS_INSERT_SORTED);
+				fsmenu_insert_entry(fsmenu, FS_CATEGORY_SYSTEM_BOOKMARKS, line, FS_INSERT_LAST);
 				
 				CFRelease(pathString);
 				CFRelease(cfURL);
diff --git a/source/blender/editors/space_file/fsmenu.h b/source/blender/editors/space_file/fsmenu.h
index 01bd4e9..ce49455 100644
--- a/source/blender/editors/space_file/fsmenu.h
+++ b/source/blender/editors/space_file/fsmenu.h
@@ -47,7 +47,8 @@ typedef enum FSMenuCategory {
 typedef enum FSMenuInsert {
 	FS_INSERT_SORTED = (1 << 0),
 	FS_INSERT_SAVE   = (1 << 1),
-	FS_INSERT_FIRST  = (1 << 2)   /* moves the item to the front of the list when its not already there */
+	FS_INSERT_FIRST  = (1 << 2),   /* moves the item to the front of the list when its not already there */
+	FS_INSERT_LAST  = (1 << 3)   /* moves the item to the end of the list when its not already there */
 } FSMenuInsert;
 
 struct FSMenu;




More information about the Bf-blender-cvs mailing list