Terminal: Remove redundant scroll length settings option
This is no longer needed as a global one is now available under mouse settings.
This commit is contained in:
parent
fd945c8007
commit
7e457b98c3
Notes:
sideshowbarker
2024-07-19 00:23:59 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/7e457b98c32 Pull-request: https://github.com/SerenityOS/serenity/pull/4641 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/linusg
4 changed files with 0 additions and 20 deletions
Applications/Terminal
Base/home/anon/.config
Libraries/LibVT
|
@ -233,18 +233,6 @@ static RefPtr<GUI::Window> create_settings_window(TerminalWidget& terminal)
|
|||
slider.set_range(0, 255);
|
||||
slider.set_value(terminal.opacity());
|
||||
|
||||
auto& spinbox_container = settings.add<GUI::GroupBox>("Scroll length");
|
||||
spinbox_container.set_layout<GUI::VerticalBoxLayout>();
|
||||
spinbox_container.layout()->set_margins({ 6, 16, 6, 6 });
|
||||
spinbox_container.set_fixed_height(46);
|
||||
|
||||
auto& spinbox = spinbox_container.add<GUI::SpinBox>();
|
||||
spinbox.set_min(1);
|
||||
spinbox.set_value(terminal.scroll_length());
|
||||
spinbox.on_change = [&terminal](int value) {
|
||||
terminal.set_scroll_length(value);
|
||||
};
|
||||
|
||||
auto& history_size_spinbox_container = settings.add<GUI::GroupBox>("Maximum scrollback history lines");
|
||||
history_size_spinbox_container.set_layout<GUI::VerticalBoxLayout>();
|
||||
history_size_spinbox_container.layout()->set_margins({ 6, 16, 6, 6 });
|
||||
|
|
|
@ -3,4 +3,3 @@ Command=
|
|||
[Window]
|
||||
Opacity=255
|
||||
Bell=Visible
|
||||
ScrollLength=4
|
||||
|
|
|
@ -112,7 +112,6 @@ TerminalWidget::TerminalWidget(int ptm_fd, bool automatic_size_policy, RefPtr<Co
|
|||
m_scrollbar->on_change = [this](int) {
|
||||
force_repaint();
|
||||
};
|
||||
set_scroll_length(m_config->read_num_entry("Window", "ScrollLength", 4));
|
||||
|
||||
dbgln("Load config file from {}", m_config->file_name());
|
||||
m_cursor_blink_timer->set_interval(m_config->read_num_entry("Text",
|
||||
|
@ -843,11 +842,6 @@ int TerminalWidget::scroll_length() const
|
|||
return m_scrollbar->step();
|
||||
}
|
||||
|
||||
void TerminalWidget::set_scroll_length(int length)
|
||||
{
|
||||
m_scrollbar->set_step(length);
|
||||
}
|
||||
|
||||
String TerminalWidget::selected_text() const
|
||||
{
|
||||
StringBuilder builder;
|
||||
|
|
|
@ -89,7 +89,6 @@ public:
|
|||
|
||||
bool is_scrollable() const;
|
||||
int scroll_length() const;
|
||||
void set_scroll_length(int);
|
||||
|
||||
size_t max_history_size() const { return m_terminal.max_history_size(); }
|
||||
void set_max_history_size(size_t value) { m_terminal.set_max_history_size(value); }
|
||||
|
|
Loading…
Add table
Reference in a new issue