A few more style fixes to ListView and ColorSet, thanks Axel
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
struct track_data;
|
||||
|
||||
|
||||
enum list_view_type {
|
||||
B_SINGLE_SELECTION_LIST,
|
||||
B_MULTIPLE_SELECTION_LIST
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
@@ -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 -
|
||||
|
||||
|
||||
|
||||
@@ -18,10 +18,9 @@
|
||||
#include <map>
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
color_which which;
|
||||
const char* text;
|
||||
typedef struct {
|
||||
color_which which;
|
||||
const char* text;
|
||||
} ColorDescription;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user