diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-03-07 00:48:18 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2025-03-07 00:48:18 +0100 |
| commit | 9cfd932d3a0d8d8fba61e0ffb91614b8fdcbafea (patch) | |
| tree | 3581cf1c2cba5ada829a9ebdaf58c80302281c7a /fluid/settings_panel.fl | |
| parent | 3068c7a0af0afbad572f88e074235853fd8be34c (diff) | |
Replce Fl_String in Fluid with std::string.
Also fix for Linux.
Diffstat (limited to 'fluid/settings_panel.fl')
| -rw-r--r-- | fluid/settings_panel.fl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fluid/settings_panel.fl b/fluid/settings_panel.fl index 912f9bf68..540ca48df 100644 --- a/fluid/settings_panel.fl +++ b/fluid/settings_panel.fl @@ -479,7 +479,7 @@ or just ".ext" to set extension.} if (v == LOAD) return; -Fl_String old_name = "Copy of "; +std::string old_name = "Copy of "; old_name.append(g_layout_list[g_layout_list.current_suite()].name_); const char *new_name = fl_input("Enter a name for the new layout:", old_name.c_str()); if (new_name == NULL) @@ -509,7 +509,7 @@ g_layout_list.update_dialogs();} label {Rename...} callback {// Rename the current layout suite -Fl_String old_name = g_layout_list[g_layout_list.current_suite()].name_; +std::string old_name = g_layout_list[g_layout_list.current_suite()].name_; const char *new_name = fl_input("Enter a new name for the layout:", old_name.c_str()); if (new_name == NULL) return; @@ -570,7 +570,7 @@ g_layout_list.update_dialogs();} fnfc.type(Fl_Native_File_Chooser::BROWSE_SAVE_FILE); fnfc.options(Fl_Native_File_Chooser::SAVEAS_CONFIRM | Fl_Native_File_Chooser::USE_FILTER_EXT); fnfc.filter("FLUID Layouts\\t*.fll\\n"); - Fl_String filename = g_layout_list.filename_; + std::string filename = g_layout_list.filename_; fnfc.directory(fl_filename_path(filename).c_str()); fnfc.preset_file(fl_filename_name(filename).c_str()); if (fnfc.show() != 0) return; |
