[Bf-blender-cvs] [9ea9eba] blender-v2.72-release: OSX: simplyfy last commit for fs_menu system_bookmarks

Jens Verwiebe noreply at git.blender.org
Wed Oct 15 13:07:39 CEST 2014


Commit: 9ea9ebae97ad91c41c2119418eacf3c9fb0e0d92
Author: Jens Verwiebe
Date:   Sat Oct 4 10:47:53 2014 +0200
Branches: blender-v2.72-release
https://developer.blender.org/rB9ea9ebae97ad91c41c2119418eacf3c9fb0e0d92

OSX: simplyfy last commit for fs_menu system_bookmarks

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

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 bfbe61d..1915f45 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_LAST);
+				fsmenu_insert_entry(fsmenu, FS_CATEGORY_SYSTEM_BOOKMARKS, line, NULL);
 				
 				CFRelease(pathString);
 				CFRelease(cfURL);
diff --git a/source/blender/editors/space_file/fsmenu.h b/source/blender/editors/space_file/fsmenu.h
index ce49455..01bd4e9 100644
--- a/source/blender/editors/space_file/fsmenu.h
+++ b/source/blender/editors/space_file/fsmenu.h
@@ -47,8 +47,7 @@ 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_LAST  = (1 << 3)   /* moves the item to the end 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 */
 } FSMenuInsert;
 
 struct FSMenu;




More information about the Bf-blender-cvs mailing list