implement open_file_dialog, save_file_dialog and set_window_title for linux

This commit was merged in pull request #15.
This commit is contained in:
Sven Balzer
2026-03-23 12:42:48 +01:00
parent 234e056965
commit abb6556fd4
2 changed files with 80 additions and 1 deletions
+7
View File
@@ -215,6 +215,13 @@ void per_frame(){
if(save_file_path) free(save_file_path);
save_file_path = new_save_file_path;
save();
char *title = (char *)calloc(1, strlen("Work Calendar - ") + strlen(save_file_path) + 1);
memcpy(title, "Work Calendar - ", strlen("Work Calendar - "));
memcpy(title + strlen("Work Calendar - "), save_file_path, strlen(save_file_path));
set_window_title(title);
free(title);
}
}