diff --git a/headers/os/interface/ListView.h b/headers/os/interface/ListView.h index f3645a4b35..bca5b930be 100644 --- a/headers/os/interface/ListView.h +++ b/headers/os/interface/ListView.h @@ -14,6 +14,7 @@ struct track_data; + enum list_view_type { B_SINGLE_SELECTION_LIST, B_MULTIPLE_SELECTION_LIST diff --git a/src/kits/interface/ListView.cpp b/src/kits/interface/ListView.cpp index e910ab6e03..4cfe417675 100644 --- a/src/kits/interface/ListView.cpp +++ b/src/kits/interface/ListView.cpp @@ -885,8 +885,8 @@ BListView::SelectionCommand() const void BListView::SetListType(list_view_type type) { - if (fListType == B_MULTIPLE_SELECTION_LIST && - type == B_SINGLE_SELECTION_LIST) { + if (fListType == B_MULTIPLE_SELECTION_LIST + && type == B_SINGLE_SELECTION_LIST) { Select(CurrentSelection(0)); } diff --git a/src/preferences/appearance/ColorSet.cpp b/src/preferences/appearance/ColorSet.cpp index 350b45a578..1260aeba38 100644 --- a/src/preferences/appearance/ColorSet.cpp +++ b/src/preferences/appearance/ColorSet.cpp @@ -27,8 +27,7 @@ #define B_TRANSLATION_CONTEXT "Colors tab" -static ColorDescription sColorDescriptionTable[] = -{ +static ColorDescription sColorDescriptionTable[] = { { B_PANEL_BACKGROUND_COLOR, B_TRANSLATE_MARK("Panel background") }, { B_PANEL_TEXT_COLOR, B_TRANSLATE_MARK("Panel text") }, { B_DOCUMENT_BACKGROUND_COLOR, B_TRANSLATE_MARK("Document background") }, @@ -75,6 +74,7 @@ static ColorDescription sColorDescriptionTable[] = const int32 sColorDescriptionCount = sizeof(sColorDescriptionTable) / sizeof(ColorDescription); + const ColorDescription* get_color_description(int32 index) { @@ -90,6 +90,7 @@ color_description_count(void) return sColorDescriptionCount; } + // #pragma mark - diff --git a/src/preferences/appearance/ColorSet.h b/src/preferences/appearance/ColorSet.h index 4d3a6ed91b..d65590a8e6 100644 --- a/src/preferences/appearance/ColorSet.h +++ b/src/preferences/appearance/ColorSet.h @@ -18,10 +18,9 @@ #include -typedef struct -{ - color_which which; - const char* text; +typedef struct { + color_which which; + const char* text; } ColorDescription;