mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 10:01:13 +09:00
TextEditor: Fix build (copy_ref() in outdated PR changes.)
This commit is contained in:
parent
d7b836858e
commit
d0a2668833
Notes:
sideshowbarker
2024-07-19 13:18:58 +09:00
Author: https://github.com/awesomekling
Commit: d0a2668833
1 changed files with 5 additions and 4 deletions
|
@ -55,9 +55,9 @@ TextEditorWidget::TextEditorWidget()
|
|||
menubar->add_menu(move(app_menu));
|
||||
|
||||
auto file_menu = make<GMenu>("File");
|
||||
file_menu->add_action(new_action.copy_ref());
|
||||
file_menu->add_action(open_action.copy_ref());
|
||||
file_menu->add_action(save_action.copy_ref());
|
||||
file_menu->add_action(new_action);
|
||||
file_menu->add_action(open_action);
|
||||
file_menu->add_action(save_action);
|
||||
menubar->add_menu(move(file_menu));
|
||||
|
||||
auto edit_menu = make<GMenu>("Edit");
|
||||
|
@ -121,4 +121,5 @@ void TextEditorWidget::open_sesame(const String& path)
|
|||
|
||||
window()->set_title(String::format("Text Editor: %s", path.characters()));
|
||||
m_editor->set_text(String::copy(file.read_all()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue