meta/plugin: Annotate dialog creation virtuals as return full
The two dialog creation virtual functions returned by these functions have to be unreferenced by the caller (and are actually unreferenced in other places in the code). Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3790>
This commit is contained in:
parent
01444e803f
commit
4134d12789
1 changed files with 4 additions and 0 deletions
|
@ -224,6 +224,8 @@ struct _MetaPluginClass
|
|||
*
|
||||
* Virtual function called to create a "force quit" dialog
|
||||
* on non-responsive clients.
|
||||
*
|
||||
* Returns: (transfer full) (nullable): a #MetaCloseDialog
|
||||
*/
|
||||
MetaCloseDialog * (* create_close_dialog) (MetaPlugin *plugin,
|
||||
MetaWindow *window);
|
||||
|
@ -235,6 +237,8 @@ struct _MetaPluginClass
|
|||
*
|
||||
* Virtual function called to create a "inhibit shortcuts" dialog
|
||||
* when a client requests compositor shortcuts to be inhibited.
|
||||
*
|
||||
* Returns: (transfer full): a #MetaInhibitShortcutsDialog
|
||||
*/
|
||||
MetaInhibitShortcutsDialog * (* create_inhibit_shortcuts_dialog) (MetaPlugin *plugin,
|
||||
MetaWindow *window);
|
||||
|
|
Loading…
Reference in a new issue