mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 06:32:10 +01:00
gsettings: add g_settings_schema_key_get_name
https://bugzilla.gnome.org/show_bug.cgi?id=743517
This commit is contained in:
parent
f3c604d273
commit
d95bb1f08b
@ -2447,6 +2447,7 @@ g_settings_schema_key_get_range
|
||||
g_settings_schema_key_range_check
|
||||
|
||||
<SUBSECTION>
|
||||
g_settings_schema_key_get_name
|
||||
g_settings_schema_key_get_summary
|
||||
g_settings_schema_key_get_description
|
||||
|
||||
|
@ -1471,6 +1471,24 @@ g_settings_schema_get_key (GSettingsSchema *schema,
|
||||
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:
|
||||
* @key: a #GSettingsSchemaKey
|
||||
|
@ -94,6 +94,8 @@ GLIB_AVAILABLE_IN_2_40
|
||||
gboolean g_settings_schema_key_range_check (GSettingsSchemaKey *key,
|
||||
GVariant *value);
|
||||
|
||||
GLIB_AVAILABLE_IN_2_44
|
||||
const gchar * g_settings_schema_key_get_name (GSettingsSchemaKey *key);
|
||||
GLIB_AVAILABLE_IN_2_40
|
||||
const gchar * g_settings_schema_key_get_summary (GSettingsSchemaKey *key);
|
||||
GLIB_AVAILABLE_IN_2_40
|
||||
|
Loading…
x
Reference in New Issue
Block a user