Return boolean on prof_settings_string_list_remove_all()

This commit is contained in:
James Booth
2016-08-01 22:09:25 +01:00
parent b72bb3a157
commit b2508be8f4
5 changed files with 18 additions and 9 deletions

View File

@@ -155,15 +155,17 @@ plugin_settings_string_list_remove(const char *const group, const char *const ke
return res;
}
void
int
plugin_settings_string_list_remove_all(const char *const group, const char *const key)
{
if (!g_key_file_has_key(settings, group, key, NULL)) {
return;
return 0;
}
g_key_file_remove_key(settings, group, key, NULL);
_save_settings();
return 1;
}
static void