secret-paths: Add (nullable) if allowed.

This caused segfaults in Seahorse when someone canceled the "Change
Password" dialog for a keyring.

Related to GNOME/seahorse#204
This commit is contained in:
Niels De Graef 2018-11-02 14:02:16 +01:00
parent 9b397a12a1
commit 020fae3bbb

View File

@ -2268,8 +2268,8 @@ secret_service_read_alias_dbus_path (SecretService *self,
* *
* Stability: Unstable * Stability: Unstable
* *
* Returns: (transfer full): the collection dbus object path, or %NULL if * Returns: (transfer full) (nullable): the collection dbus object path,
* none assigned to the alias * or %NULL if none assigned to the alias
*/ */
gchar * gchar *
secret_service_read_alias_dbus_path_finish (SecretService *self, secret_service_read_alias_dbus_path_finish (SecretService *self,
@ -2311,8 +2311,8 @@ secret_service_read_alias_dbus_path_finish (SecretService *self,
* *
* Stability: Unstable * Stability: Unstable
* *
* Returns: (transfer full): the collection dbus object path, or %NULL if * Returns: (transfer full) (nullable): the collection dbus object path,
* none assigned to the alias * or %NULL if none assigned to the alias
*/ */
gchar * gchar *
secret_service_read_alias_dbus_path_sync (SecretService *self, secret_service_read_alias_dbus_path_sync (SecretService *self,
@ -2491,8 +2491,8 @@ secret_service_set_alias_to_dbus_path_sync (SecretService *self,
* *
* Stability: Unstable * Stability: Unstable
* *
* Returns: (transfer full): %NULL if the prompt was dismissed or an error occurred, * Returns: (transfer full) (nullable): %NULL if the prompt was dismissed or an
* a variant result if the prompt was successful * error occurred, a variant result if the prompt was successful
*/ */
GVariant * GVariant *
secret_service_prompt_at_dbus_path_sync (SecretService *self, secret_service_prompt_at_dbus_path_sync (SecretService *self,
@ -2569,8 +2569,8 @@ secret_service_prompt_at_dbus_path (SecretService *self,
* *
* Stability: Unstable * Stability: Unstable
* *
* Returns: (transfer full): %NULL if the prompt was dismissed or an error occurred, * Returns: (transfer full) (nullable): %NULL if the prompt was dismissed or an
* a variant result if the prompt was successful * error occurred, a variant result if the prompt was successful
*/ */
GVariant * GVariant *
secret_service_prompt_at_dbus_path_finish (SecretService *self, secret_service_prompt_at_dbus_path_finish (SecretService *self,