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:
@@ -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
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user