diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-12-05 00:39:57 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-12-05 00:39:57 (GMT) |
commit | 1e3fa9b79ebe55698e2aa7d5484baec7e8400a8f (patch) | |
tree | c3581ceb7f8586f2f6822de563927a1246dd33a5 /src/core | |
parent | 6122bb7f34b178d4c07285adae16afcc55294b1f (diff) |
Rewritten the whole API dealing with panels.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/logs.c | 6 | ||||
-rw-r--r-- | src/core/params.c | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/core/logs.c b/src/core/logs.c index a723cf7..2769bd5 100644 --- a/src/core/logs.c +++ b/src/core/logs.c @@ -29,7 +29,7 @@ #include "../common/extstr.h" -#include "../gui/core/panels.h" +#include "../gui/core/items.h" #include "../gui/panels/log.h" @@ -107,11 +107,11 @@ void set_log_verbosity(LogMessageType level) void log_simple_message(LogMessageType type, const char *msg) { - GPanelItem *item; /* Eventuel affichage présent */ + GEditorItem *item; /* Eventuel affichage présent */ if (type >= _verbosity) { - item = get_panel_item_by_name(PANEL_LOG_ID); + item = find_editor_item_by_type(G_TYPE_LOG_PANEL); if (item != NULL) { diff --git a/src/core/params.c b/src/core/params.c index 7e6e1ed..25f8991 100644 --- a/src/core/params.c +++ b/src/core/params.c @@ -116,6 +116,7 @@ bool load_main_config_parameters(void) g_generic_config_create_group(config, "gui.panels.positions", CPT_INTEGER); g_generic_config_create_group(config, "gui.panels.dock_at_startup", CPT_BOOLEAN); + g_generic_config_create_group(config, "gui.panels.path", CPT_STRING); return true; |