Cleanup:Remove unused pref entries and fix typo
* PREF_SHELL is not used anymore, corresponding entry in /etc/passwd should be used instead; * PREF_GUI_LANGUAGE is not actual anymore - we have system-wide UI localization support; * Fix typo in the name of MSG_SET_TERMNAL_TITLE constant.
This commit is contained in:
parent
f9443b14d5
commit
02f3baa09d
@ -53,12 +53,10 @@ static const pref_defaults kTermDefaults[] = {
|
||||
{ PREF_IM_BACK_COLOR, "152, 203, 255" },
|
||||
{ PREF_IM_SELECT_COLOR, "255, 152, 152" },
|
||||
|
||||
{ PREF_SHELL, "/bin/sh -login" },
|
||||
{ PREF_HISTORY_SIZE, "10000" },
|
||||
|
||||
{ PREF_TEXT_ENCODING, "UTF-8" },
|
||||
|
||||
{ PREF_GUI_LANGUAGE, "English"},
|
||||
{ PREF_IM_AWARE, "0"},
|
||||
|
||||
{ PREF_TAB_TITLE, "%1d: %p" },
|
||||
|
@ -87,7 +87,7 @@ static const uint32 SAVE_AS_DEFAULT = 'sadf';
|
||||
static const uint32 MSG_CHECK_CHILDREN = 'ckch';
|
||||
static const uint32 MSG_REMOVE_RESIZE_VIEW_IF_NEEDED = 'rmrv';
|
||||
static const uint32 MSG_TERMINAL_BUFFER_CHANGED = 'bufc';
|
||||
static const uint32 MSG_SET_TERMNAL_TITLE = 'sett';
|
||||
static const uint32 MSG_SET_TERMINAL_TITLE = 'sett';
|
||||
static const uint32 MSG_QUIT_TERMNAL = 'qutt';
|
||||
static const uint32 MSG_REPORT_MOUSE_EVENT = 'mous';
|
||||
static const uint32 MSG_SAVE_WINDOW_POSITION = 'swps';
|
||||
@ -128,10 +128,8 @@ static const char* const PREF_IM_AWARE = "Input method aware";
|
||||
|
||||
static const char* const PREF_COLS = "Cols";
|
||||
static const char* const PREF_ROWS = "Rows";
|
||||
static const char* const PREF_SHELL = "Shell";
|
||||
|
||||
static const char* const PREF_TEXT_ENCODING = "Text encoding";
|
||||
static const char* const PREF_GUI_LANGUAGE = "Language";
|
||||
|
||||
static const char* const PREF_BLINK_CURSOR = "Blinking cursor";
|
||||
static const char* const PREF_WARN_ON_EXIT = "Warn on exit";
|
||||
|
@ -2002,7 +2002,7 @@ TermView::MessageReceived(BMessage *msg)
|
||||
_SynchronizeWithTextBuffer(0, -1);
|
||||
break;
|
||||
}
|
||||
case MSG_SET_TERMNAL_TITLE:
|
||||
case MSG_SET_TERMINAL_TITLE:
|
||||
{
|
||||
const char* title;
|
||||
if (msg->FindString("title", &title) == B_OK) {
|
||||
|
@ -128,7 +128,7 @@ void
|
||||
TerminalBuffer::SetTitle(const char* title)
|
||||
{
|
||||
if (fListenerValid) {
|
||||
BMessage message(MSG_SET_TERMNAL_TITLE);
|
||||
BMessage message(MSG_SET_TERMINAL_TITLE);
|
||||
message.AddString("title", title);
|
||||
fListener.SendMessage(&message);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user