1
0
Fork 0

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>
(cherry picked from commit 4134d12789)
This commit is contained in:
Corentin Noël 2024-05-30 15:48:23 +02:00 committed by Jonas Ådahl
parent 18c17aaa5a
commit 24f2e76576

View file

@ -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);