~azzar1/compiz/is_repeated_key_press

« back to all changes in this revision

Viewing changes to compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_backend.c

  • Committer: CI Train Bot
  • Author(s): smspillaz at gmail
  • Date: 2016-03-11 08:26:37 UTC
  • mfrom: (3995.4.5 compiz)
  • Revision ID: ci-train-bot@canonical.com-20160311082637-rd2rmr6o3arbc8sz
Fix broken tests
Approved by: Marco Trevisan (Treviño), PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
    const char *ccsProfile = ccsGetProfile (context);
184
184
    char *profile = NULL;
185
185
 
186
 
    CCSGSettingsBackendPrivate *priv = (CCSGSettingsBackendPrivate *) ccsObjectGetPrivate (backend);
187
 
 
188
186
    if (!ccsProfile)
189
187
        profile = strdup (DEFAULTPROF);
190
188
    else
197
195
    }
198
196
 
199
197
    if (g_strcmp0 (profile, currentProfile))
200
 
    {
201
198
        ccsGSettingsBackendUpdateCurrentProfileName (backend, profile);
202
 
        g_list_free_full (priv->settingsList, ccsGSettingsWrapperDestroyNotify);
203
 
        priv->settingsList = NULL;
204
 
    }
205
199
 
206
200
    free (profile);
207
201
 
294
288
    if (priv->currentProfileSettings)
295
289
        ccsGSettingsWrapperUnref (priv->currentProfileSettings);
296
290
 
 
291
    g_list_free_full (priv->settingsList, ccsGSettingsWrapperDestroyNotify);
 
292
    priv->settingsList = NULL;
 
293
 
297
294
    priv->currentProfile = strdup (value);
298
295
    priv->currentProfileSettings = ccsGSettingsWrapperNewForSchemaWithPath (PROFILE_SCHEMA_ID,
299
296
                                                                            profilePath,