mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
context: Add way to add custom option group
This will be used by gnome-shell. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
This commit is contained in:
parent
d76743736f
commit
ed53dd90f3
@ -72,6 +72,17 @@ meta_context_add_option_entries (MetaContext *context,
|
||||
translation_domain);
|
||||
}
|
||||
|
||||
void
|
||||
meta_context_add_option_group (MetaContext *context,
|
||||
GOptionGroup *group)
|
||||
{
|
||||
MetaContextPrivate *priv = meta_context_get_instance_private (context);
|
||||
|
||||
g_return_if_fail (priv->option_context);
|
||||
|
||||
g_option_context_add_group (priv->option_context, group);
|
||||
}
|
||||
|
||||
void
|
||||
meta_context_set_plugin_gtype (MetaContext *context,
|
||||
GType plugin_gtype)
|
||||
|
@ -38,6 +38,10 @@ void meta_context_add_option_entries (MetaContext *context,
|
||||
const GOptionEntry *entries,
|
||||
const char *translation_domain);
|
||||
|
||||
META_EXPORT
|
||||
void meta_context_add_option_group (MetaContext *context,
|
||||
GOptionGroup *group);
|
||||
|
||||
META_EXPORT
|
||||
void meta_context_set_plugin_gtype (MetaContext *context,
|
||||
GType plugin_gtype);
|
||||
|
Loading…
Reference in New Issue
Block a user