clutter/context: Add API to get the corresponding Settings
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3977>
This commit is contained in:
parent
66a45809fa
commit
b02a29fee7
@ -376,3 +376,11 @@ clutter_context_get_show_fps (ClutterContext *context)
|
|||||||
{
|
{
|
||||||
return context->show_fps;
|
return context->show_fps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ClutterSettings *
|
||||||
|
clutter_context_get_settings (ClutterContext *context)
|
||||||
|
{
|
||||||
|
g_return_val_if_fail (CLUTTER_IS_CONTEXT (context), NULL);
|
||||||
|
|
||||||
|
return context->settings;
|
||||||
|
}
|
||||||
|
@ -69,3 +69,11 @@ ClutterPipelineCache * clutter_context_get_pipeline_cache (ClutterContext *clutt
|
|||||||
*/
|
*/
|
||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
ClutterColorManager * clutter_context_get_color_manager (ClutterContext *context);
|
ClutterColorManager * clutter_context_get_color_manager (ClutterContext *context);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* clutter_context_get_settings:
|
||||||
|
*
|
||||||
|
* Returns: (transfer none): The %ClutterSettings
|
||||||
|
*/
|
||||||
|
CLUTTER_EXPORT
|
||||||
|
ClutterSettings * clutter_context_get_settings (ClutterContext *context);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user