| 293 | | gchar *contents = g_key_file_to_data (m_Values, NULL, NULL); |
|---|
| 294 | | gchar *configFile = getConfigFileName (); |
|---|
| 295 | | GError *error = NULL; |
|---|
| 296 | | if ( !g_file_set_contents (configFile, contents, -1, &error) ) |
|---|
| 297 | | { |
|---|
| 298 | | g_warning ("Couldn't write configuration file: %s\n", error->message); |
|---|
| 299 | | g_error_free (error); |
|---|
| | 293 | gsize length = 0; |
|---|
| | 294 | gchar *contents = g_key_file_to_data (m_Values, &length, NULL); |
|---|
| | 295 | gchar *configFileName = getConfigFileName (); |
|---|
| | 296 | FILE *configFile = g_fopen (configFileName, "w+t"); |
|---|
| | 297 | if ( NULL != configFile ) |
|---|
| | 298 | { |
|---|
| | 299 | fwrite (contents, sizeof (gchar), length, configFile); |
|---|
| | 300 | fclose (configFile); |
|---|