mutter: Add missing nullable annotation when possible
Add missing (nullable) annotation when a possible NULL return value is expected. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2362>
This commit is contained in:
@ -398,6 +398,14 @@ meta_startup_sequence_get_workspace (MetaStartupSequence *seq)
|
||||
return priv->workspace;
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_startup_sequence_get_icon_name:
|
||||
* @seq: a #MetaStartupSequence
|
||||
*
|
||||
* Get the icon name of the startup sequence.
|
||||
*
|
||||
* Returns: (nullable): the icon name or %NULL.
|
||||
**/
|
||||
const char *
|
||||
meta_startup_sequence_get_icon_name (MetaStartupSequence *seq)
|
||||
{
|
||||
@ -409,6 +417,14 @@ meta_startup_sequence_get_icon_name (MetaStartupSequence *seq)
|
||||
return priv->icon_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_startup_sequence_get_application_id:
|
||||
* @seq: a #MetaStartupSequence
|
||||
*
|
||||
* Get the application id of the startup sequence.
|
||||
*
|
||||
* Returns: (nullable): the application id or %NULL.
|
||||
**/
|
||||
const char *
|
||||
meta_startup_sequence_get_application_id (MetaStartupSequence *seq)
|
||||
{
|
||||
@ -420,6 +436,14 @@ meta_startup_sequence_get_application_id (MetaStartupSequence *seq)
|
||||
return priv->application_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_startup_sequence_get_wmclass:
|
||||
* @seq: a #MetaStartupSequence
|
||||
*
|
||||
* Get the wmclass of the startup sequence.
|
||||
*
|
||||
* Returns: (nullable): the wmclass or %NULL.
|
||||
**/
|
||||
const char *
|
||||
meta_startup_sequence_get_wmclass (MetaStartupSequence *seq)
|
||||
{
|
||||
@ -671,6 +695,15 @@ meta_startup_notification_new (MetaDisplay *display)
|
||||
NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_startup_notification_get_sequences:
|
||||
* @sn: a #MetaStartupNotification
|
||||
*
|
||||
* Get the list of startup sequences arrived in the startup notification object.
|
||||
*
|
||||
* Returns: (element-type MetaStartupSequence): a #GSList of
|
||||
* #MetaStartupSequence in the #MetaStartupNotification.
|
||||
**/
|
||||
GSList *
|
||||
meta_startup_notification_get_sequences (MetaStartupNotification *sn)
|
||||
{
|
||||
|
Reference in New Issue
Block a user