OSX: simplyfy last commit for fs_menu system_bookmarks

This commit is contained in:
jens verwiebe 2014-10-04 10:47:53 +02:00
parent 6359c36ba4
commit 9d8c1658a1
2 changed files with 2 additions and 3 deletions

View File

@ -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);

View File

@ -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;