gsettings: add g_settings_schema_key_get_name

https://bugzilla.gnome.org/show_bug.cgi?id=743517
This commit is contained in:
Lars Uebernickel 2015-01-26 09:50:34 +00:00
parent f3c604d273
commit d95bb1f08b
3 changed files with 21 additions and 0 deletions

View File

@ -2447,6 +2447,7 @@ g_settings_schema_key_get_range
g_settings_schema_key_range_check g_settings_schema_key_range_check
<SUBSECTION> <SUBSECTION>
g_settings_schema_key_get_name
g_settings_schema_key_get_summary g_settings_schema_key_get_summary
g_settings_schema_key_get_description g_settings_schema_key_get_description

View File

@ -1471,6 +1471,24 @@ g_settings_schema_get_key (GSettingsSchema *schema,
return key; return key;
} }
/**
* g_settings_schema_key_get_name:
* @key: a #GSettingsSchemaKey
*
* Gets the name of @key.
*
* Returns: the name of @key.
*
* Since: 2.44
*/
const gchar *
g_settings_schema_key_get_name (GSettingsSchemaKey *key)
{
g_return_val_if_fail (key != NULL, NULL);
return key->name;
}
/** /**
* g_settings_schema_key_get_summary: * g_settings_schema_key_get_summary:
* @key: a #GSettingsSchemaKey * @key: a #GSettingsSchemaKey

View File

@ -94,6 +94,8 @@ GLIB_AVAILABLE_IN_2_40
gboolean g_settings_schema_key_range_check (GSettingsSchemaKey *key, gboolean g_settings_schema_key_range_check (GSettingsSchemaKey *key,
GVariant *value); GVariant *value);
GLIB_AVAILABLE_IN_2_44
const gchar * g_settings_schema_key_get_name (GSettingsSchemaKey *key);
GLIB_AVAILABLE_IN_2_40 GLIB_AVAILABLE_IN_2_40
const gchar * g_settings_schema_key_get_summary (GSettingsSchemaKey *key); const gchar * g_settings_schema_key_get_summary (GSettingsSchemaKey *key);
GLIB_AVAILABLE_IN_2_40 GLIB_AVAILABLE_IN_2_40