~vanvugt/compiz/fix-1056615

« back to all changes in this revision

Viewing changes to compizconfig/gsettings/gsettings_backend_shared/ccs_gsettings_wrapper_factory.h

  • Committer: Tarmac
  • Author(s): Sam Spilsbury
  • Date: 2012-10-16 11:43:02 UTC
  • mfrom: (3411.1.11 compiz.fix_1064791)
  • Revision ID: tarmac-20121016114302-svbjerf1lf8jb7lm
Don't write plugins-with-set-keys every single time we read a schema, if 
the value is already in plugins-with-set-keys. Added tests to demonstrate 
behaviour.
(LP: #1064791)

vanvugt says: This also seems to fix LP: #1044662, somehow.. Fixes: https://bugs.launchpad.net/bugs/1064791. Approved by Daniel van Vugt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 *
 
3
 * GSettings libcompizconfig backend
 
4
 *
 
5
 * ccs_gsettings_wrapper_factory.h
 
6
 *
 
7
 * Copyright (c) 2012 Canonical Ltd
 
8
 *
 
9
 * This program is free software; you can redistribute it and/or
 
10
 * modify it under the terms of the GNU General Public License
 
11
 * as published by the Free Software Foundation; either version 2
 
12
 * of the License, or (at your option) any later version.
 
13
 *
 
14
 * This program is distributed in the hope that it will be useful,
 
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
 * GNU General Public License for more details.
 
18
 *
 
19
 * Authored By:
 
20
 *      Sam Spilsbury <sam.spilsbury@canonical.com>
 
21
 *
 
22
 **/
 
23
#ifndef _CCS_GSETTINGS_WRAPPER_FACTORY_H
 
24
#define _CCS_GSETTINGS_WRAPPER_FACTORY_H
 
25
 
 
26
#include <ccs-defs.h>
 
27
 
 
28
COMPIZCONFIG_BEGIN_DECLS
 
29
 
 
30
#include <ccs-fwd.h>
 
31
#include <ccs_gsettings_backend_fwd.h>
 
32
 
 
33
CCSGSettingsWrapperFactory *
 
34
ccsGSettingsWrapperFactoryDefaultImplNew (CCSObjectAllocationInterface *ai);
 
35
 
 
36
COMPIZCONFIG_END_DECLS
 
37
 
 
38
#endif