core/context: Make notify_ready vfunc optional

As it is used only in a X11 build for session management
See next commit

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3540>
This commit is contained in:
Bilal Elmoussaoui 2024-01-28 10:35:56 +01:00 committed by Marge Bot
parent 947f20b1a7
commit c388abe1e3

View File

@ -202,6 +202,7 @@ meta_context_notify_ready (MetaContext *context)
g_return_if_fail (priv->state == META_CONTEXT_STATE_STARTED ||
priv->state == META_CONTEXT_STATE_RUNNING);
if (META_CONTEXT_GET_CLASS (context)->notify_ready)
META_CONTEXT_GET_CLASS (context)->notify_ready (context);
}