Fix coding style. Thanks Jérôme!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40406 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -79,7 +79,7 @@ CheckBoxItem::DrawItem(BView* owner, BRect itemRect, bool drawEverything)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
rgb_color base = ui_color(B_PANEL_BACKGROUND_COLOR);
|
rgb_color base = ui_color(B_PANEL_BACKGROUND_COLOR);
|
||||||
uint32 flags = 0;
|
uint32 flags = 0;
|
||||||
if (fMouseDown)
|
if (fMouseDown)
|
||||||
flags |= BControlLook::B_CLICKED;
|
flags |= BControlLook::B_CLICKED;
|
||||||
if (fChecked)
|
if (fChecked)
|
||||||
@@ -162,10 +162,10 @@ EditListView::MouseDown(BPoint where)
|
|||||||
|
|
||||||
int32 index = IndexOf(where);
|
int32 index = IndexOf(where);
|
||||||
BListItem* item = ItemAt(index);
|
BListItem* item = ItemAt(index);
|
||||||
if (!item)
|
if (item == NULL)
|
||||||
return;
|
return;
|
||||||
EditableListItem* handler = dynamic_cast<EditableListItem*>(item);
|
EditableListItem* handler = dynamic_cast<EditableListItem*>(item);
|
||||||
if (!handler)
|
if (handler == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
fLastMouseDown = handler;
|
fLastMouseDown = handler;
|
||||||
@@ -185,10 +185,10 @@ EditListView::MouseUp(BPoint where)
|
|||||||
|
|
||||||
int32 index = IndexOf(where);
|
int32 index = IndexOf(where);
|
||||||
BListItem* item = ItemAt(index);
|
BListItem* item = ItemAt(index);
|
||||||
if (!item)
|
if (item == NULL)
|
||||||
return;
|
return;
|
||||||
EditableListItem* handler = dynamic_cast<EditableListItem*>(item);
|
EditableListItem* handler = dynamic_cast<EditableListItem*>(item);
|
||||||
if (!handler)
|
if (handler == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
handler->MouseUp(where);
|
handler->MouseUp(where);
|
||||||
@@ -276,17 +276,17 @@ void
|
|||||||
FolderConfigWindow::MessageReceived(BMessage* message)
|
FolderConfigWindow::MessageReceived(BMessage* message)
|
||||||
{
|
{
|
||||||
switch (message->what) {
|
switch (message->what) {
|
||||||
case kMsgInit:
|
case kMsgInit:
|
||||||
_LoadFolders();
|
_LoadFolders();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case kMsgApplyButton:
|
case kMsgApplyButton:
|
||||||
_ApplyChanges();
|
_ApplyChanges();
|
||||||
PostMessage(B_QUIT_REQUESTED);
|
PostMessage(B_QUIT_REQUESTED);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
BWindow::MessageReceived(message);
|
BWindow::MessageReceived(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -335,8 +335,7 @@ FolderConfigWindow::_ApplyChanges()
|
|||||||
for (unsigned int i = 0; i < fFolderList.size(); i++) {
|
for (unsigned int i = 0; i < fFolderList.size(); i++) {
|
||||||
FolderInfo& info = fFolderList[i];
|
FolderInfo& info = fFolderList[i];
|
||||||
CheckBoxItem* item = (CheckBoxItem*)fFolderListView->ItemAt(i);
|
CheckBoxItem* item = (CheckBoxItem*)fFolderListView->ItemAt(i);
|
||||||
if ((info.subscribed && !item->Checked())
|
if ((info.subscribed != item->Checked())) {
|
||||||
|| (!info.subscribed && item->Checked())) {
|
|
||||||
haveChanges = true;
|
haveChanges = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,18 +84,18 @@ IMAPMailboxThread::MessageReceived(BMessage* message)
|
|||||||
status_t status = B_ERROR;
|
status_t status = B_ERROR;
|
||||||
|
|
||||||
switch (message->what) {
|
switch (message->what) {
|
||||||
case kMsgStartWatching:
|
case kMsgStartWatching:
|
||||||
status = fIMAPMailbox.StartWatchingMailbox();
|
status = fIMAPMailbox.StartWatchingMailbox();
|
||||||
if (status != B_OK)
|
if (status != B_OK)
|
||||||
fProtocol.Disconnect();
|
fProtocol.Disconnect();
|
||||||
|
|
||||||
fLock.Lock();
|
fLock.Lock();
|
||||||
fIsWatching = false;
|
fIsWatching = false;
|
||||||
fLock.Unlock();
|
fLock.Unlock();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
BLooper::MessageReceived(message);
|
BLooper::MessageReceived(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user