silence the g_key_file const warning

This commit is contained in:
Daniel Micay 2012-08-14 20:02:11 -04:00
parent 343cee1702
commit c4a9494123
1 changed files with 2 additions and 1 deletions

View File

@ -595,7 +595,8 @@ static void load_config(GtkWindow *window, VteTerminal *vte, config_info *info,
GKeyFile *config = g_key_file_new(); GKeyFile *config = g_key_file_new();
if ((g_key_file_load_from_file(config, path, G_KEY_FILE_NONE, NULL) || if ((g_key_file_load_from_file(config, path, G_KEY_FILE_NONE, NULL) ||
g_key_file_load_from_dirs(config, filename, (const char **)g_get_system_config_dirs(), g_key_file_load_from_dirs(config, filename,
const_cast<const char **>(g_get_system_config_dirs()),
NULL, G_KEY_FILE_NONE, NULL))) { NULL, G_KEY_FILE_NONE, NULL))) {
gboolean cfgbool; gboolean cfgbool;
double cfgdouble; double cfgdouble;