@@ -90,7 +90,7 @@ SpreadsheetWidget::SpreadsheetWidget(GUI::Window& parent_window, NonnullRefPtrVe
90
90
m_workbook->add_sheet (" Sheet 1" );
91
91
92
92
m_tab_context_menu = GUI::Menu::construct ();
93
- m_rename_action = GUI::Action::create (" Rename..." , [this ](auto &) {
93
+ m_rename_action = GUI::Action::create (" Rename..." , Gfx::Bitmap::try_load_from_file ( " /res/icons/16x16/rename.png " ). release_value_but_fixme_should_propagate_errors (), [this ](auto &) {
94
94
VERIFY (m_tab_context_menu_sheet_view);
95
95
96
96
auto * sheet_ptr = m_tab_context_menu_sheet_view->sheet_if_available ();
@@ -104,7 +104,7 @@ SpreadsheetWidget::SpreadsheetWidget(GUI::Window& parent_window, NonnullRefPtrVe
104
104
}
105
105
});
106
106
m_tab_context_menu->add_action (*m_rename_action);
107
- m_tab_context_menu->add_action (GUI::Action::create (" Add new sheet..." , [this ](auto &) {
107
+ m_tab_context_menu->add_action (GUI::Action::create (" Add new sheet..." , Gfx::Bitmap::try_load_from_file ( " /res/icons/16x16/new-tab.png " ). release_value_but_fixme_should_propagate_errors (), [this ](auto &) {
108
108
String name;
109
109
if (GUI::InputBox::show (window (), name, " Name for new sheet" , " Create sheet" ) == GUI::Dialog::ExecOK) {
110
110
NonnullRefPtrVector<Sheet> new_sheets;
@@ -204,7 +204,7 @@ SpreadsheetWidget::SpreadsheetWidget(GUI::Window& parent_window, NonnullRefPtrVe
204
204
window ());
205
205
206
206
m_functions_help_action = GUI::Action::create (
207
- " &Functions Help" , [&](auto &) {
207
+ " &Functions Help" , Gfx::Bitmap::try_load_from_file ( " /res/icons/16x16/app-help.png " ). release_value_but_fixme_should_propagate_errors (), [&](auto &) {
208
208
if (auto * worksheet_ptr = current_worksheet_if_available ()) {
209
209
auto docs = worksheet_ptr->gather_documentation ();
210
210
auto help_window = Spreadsheet::HelpWindow::the (window ());
0 commit comments