mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-09 18:02:52 +08:00
refactor: 移除未使用的布局配置并增强日志与安全字符串
- 删除未使用的 layout_config.h 头文件及其引用 - 在 main.c 和 callbacks.c 中添加日志记录以追踪程序启动、关闭和关键操作 - 将多处 strncpy 调用替换为安全的 safe_strcpy 函数 - 在 dialogs.c 中引入 safe_string.h 以使用安全字符串函数
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user