Make GSettingsSchemaKey public

Take this private API and make it public along with a boxed type and
ref/unref functions.

Future commits will add accessors with new functionality and some that
allow us to deprecate functions on GSettings itself (such as
g_settings_get_range).

https://bugzilla.gnome.org/show_bug.cgi?id=668232
This commit is contained in:
Ryan Lortie
2013-10-26 18:57:24 -04:00
parent 0ef43ba743
commit 84fa07aeb1
4 changed files with 97 additions and 2 deletions

View File

@@ -22,7 +22,7 @@
#include "gsettingsschema.h"
typedef struct
struct _GSettingsSchemaKey
{
GSettingsSchema *schema;
const gchar *name;
@@ -39,7 +39,9 @@ typedef struct
const GVariantType *type;
GVariant *minimum, *maximum;
GVariant *default_value;
} GSettingsSchemaKey;
gint ref_count;
};
const gchar * g_settings_schema_get_gettext_domain (GSettingsSchema *schema);
GVariantIter * g_settings_schema_get_value (GSettingsSchema *schema,