mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-25 03:36:36 +00:00
StringViewize a bunch of things -- mostly LibGUI
This commit is contained in:
parent
f9ba7adae2
commit
1024dfa81a
Notes:
sideshowbarker
2024-07-19 13:45:33 +09:00
Author: https://github.com/rburchell
Commit: 1024dfa81a
Pull-request: https://github.com/SerenityOS/serenity/pull/170
Reviewed-by: https://github.com/awesomekling
59 changed files with 129 additions and 139 deletions
|
@ -184,7 +184,7 @@ int main(int argc, char** argv)
|
|||
menubar->add_menu(move(app_menu));
|
||||
|
||||
auto font_menu = make<GMenu>("Font");
|
||||
GFontDatabase::the().for_each_fixed_width_font([&] (const String& font_name) {
|
||||
GFontDatabase::the().for_each_fixed_width_font([&] (const StringView& font_name) {
|
||||
font_menu->add_action(GAction::create(font_name, [&terminal, &config] (const GAction& action) {
|
||||
terminal.set_font(GFontDatabase::the().get_by_name(action.text()));
|
||||
auto metadata = GFontDatabase::the().get_metadata_by_name(action.text());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue