refactor: 移除未使用的布局配置并增强日志与安全字符串

- 删除未使用的 layout_config.h 头文件及其引用
- 在 main.c 和 callbacks.c 中添加日志记录以追踪程序启动、关闭和关键操作
- 将多处 strncpy 调用替换为安全的 safe_strcpy 函数
- 在 dialogs.c 中引入 safe_string.h 以使用安全字符串函数
This commit is contained in:
2026-03-26 13:20:34 +08:00
parent 6ba7e702f2
commit 3af0e96060
5 changed files with 28 additions and 27 deletions
-19
View File
@@ -1,19 +0,0 @@
#ifndef LAYOUT_CONFIG_H
#define LAYOUT_CONFIG_H
// 布局配置结构体
typedef struct {
int vbox_gap; // 垂直布局间距
int vbox_margin_width; // 垂直布局外边距宽度
int vbox_margin_height; // 垂直布局外边距高度
int hbox_gap; // 水平布局间距
int hbox_margin_width; // 水平布局外边距宽度
int hbox_margin_height; // 水平布局外边距高度
int button_width; // 按钮宽度
int button_height; // 按钮高度
} LayoutConfig;
// 默认布局配置
extern const LayoutConfig DEFAULT_LAYOUT;
#endif // LAYOUT_CONFIG_H