mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-01 00:54:24 +03:00
(mc_config_del_param): renamed to mc_config_del_key.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
ac8e519854
commit
5b9a7dd43f
@ -28,7 +28,7 @@ extern mc_config_t *mc_panels_config;
|
|||||||
mc_config_t *mc_config_init (const gchar *);
|
mc_config_t *mc_config_init (const gchar *);
|
||||||
void mc_config_deinit (mc_config_t *);
|
void mc_config_deinit (mc_config_t *);
|
||||||
|
|
||||||
gboolean mc_config_del_param (mc_config_t *, const char *, const gchar *);
|
gboolean mc_config_del_key (mc_config_t *, const char *, const gchar *);
|
||||||
gboolean mc_config_del_group (mc_config_t *, const char *);
|
gboolean mc_config_del_group (mc_config_t *, const char *);
|
||||||
|
|
||||||
gboolean mc_config_has_param (mc_config_t *, const char *, const gchar *);
|
gboolean mc_config_has_param (mc_config_t *, const char *, const gchar *);
|
||||||
|
@ -165,7 +165,7 @@ mc_config_has_group (mc_config_t * mc_config, const char *group)
|
|||||||
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
mc_config_del_param (mc_config_t * mc_config, const char *group, const gchar * param)
|
mc_config_del_key (mc_config_t * mc_config, const char *group, const gchar * param)
|
||||||
{
|
{
|
||||||
if (!mc_config || !group || !param)
|
if (!mc_config || !group || !param)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -229,7 +229,7 @@ find_load_options (void)
|
|||||||
mc_config_set_string (mc_main_config, "FindFile", "ignore_dirs", ignore_dirs);
|
mc_config_set_string (mc_main_config, "FindFile", "ignore_dirs", ignore_dirs);
|
||||||
}
|
}
|
||||||
g_free (ignore_dirs);
|
g_free (ignore_dirs);
|
||||||
mc_config_del_param (mc_main_config, "Misc", "find_ignore_dirs");
|
mc_config_del_key (mc_main_config, "Misc", "find_ignore_dirs");
|
||||||
|
|
||||||
/* Then load new parameters */
|
/* Then load new parameters */
|
||||||
ignore_dirs = mc_config_get_string (mc_main_config, "FindFile", "ignore_dirs", "");
|
ignore_dirs = mc_config_get_string (mc_main_config, "FindFile", "ignore_dirs", "");
|
||||||
|
Loading…
Reference in New Issue
Block a user