update the alignment menu based on the current alignment of the text view
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2175 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e11a052e91
commit
9e159bcf9a
@ -716,6 +716,21 @@ StyledEditWindow::MenusBeginning()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
switch (fTextView->Alignment()) {
|
||||
case B_ALIGN_LEFT:
|
||||
fAlignLeft->SetMarked(true);
|
||||
break;
|
||||
case B_ALIGN_CENTER:
|
||||
fAlignCenter->SetMarked(true);
|
||||
break;
|
||||
case B_ALIGN_RIGHT:
|
||||
fAlignRight->SetMarked(true);
|
||||
break;
|
||||
default:
|
||||
// I am so confused.
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user