And of course, actually save the font size selected via shortcut.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23862 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2008-02-04 11:08:06 +00:00
parent 894a6c6217
commit 4d67ea42f3
2 changed files with 2 additions and 1 deletions

View File

@ -49,7 +49,7 @@ AppearancePrefView::AppearancePrefView(BRect frame, const char *name,
r.OffsetBy(r.Width() + 10, 0); r.OffsetBy(r.Width() + 10, 0);
menu = _MakeSizeMenu(MSG_HALF_SIZE_CHANGED, menu = _MakeSizeMenu(MSG_HALF_SIZE_CHANGED,
atoi(PrefHandler::Default()->getString(PREF_HALF_FONT_SIZE))); PrefHandler::Default()->getInt32(PREF_HALF_FONT_SIZE));
fFontSize = new BMenuField(r, "size", "Size:", menu, B_WILL_DRAW); fFontSize = new BMenuField(r, "size", "Size:", menu, B_WILL_DRAW);
fFontSize->SetDivider(sizeDividerSize); fFontSize->SetDivider(sizeDividerSize);
AddChild(fFontSize); AddChild(fFontSize);

View File

@ -455,6 +455,7 @@ TermWindow::MessageReceived(BMessage *message)
font.SetSize(size); font.SetSize(size);
view->SetTermFont(&font); view->SetTermFont(&font);
PrefHandler::Default()->setInt32(PREF_HALF_FONT_SIZE, size);
_ResizeView(view); _ResizeView(view);
break; break;