gio: Add missing (nullable) annotation

Add it to g_application_command_line_get_cwd(). Also add a clarifying
internal comment about the cwd private member.

https://bugzilla.gnome.org/show_bug.cgi?id=700756
This commit is contained in:
Philip Withnall 2016-06-15 11:01:26 -04:00
parent c91411464e
commit f8ff1049d3

View File

@ -230,7 +230,7 @@ struct _GApplicationCommandLinePrivate
GVariant *arguments; GVariant *arguments;
GVariant *options; GVariant *options;
GVariantDict *options_dict; GVariantDict *options_dict;
gchar *cwd; gchar *cwd; /* in GLib filename encoding, not UTF-8 */
gchar **environ; gchar **environ;
gint exit_status; gint exit_status;
@ -552,7 +552,7 @@ g_application_command_line_get_stdin (GApplicationCommandLine *cmdline)
* The return value should not be modified or freed and is valid for as * The return value should not be modified or freed and is valid for as
* long as @cmdline exists. * long as @cmdline exists.
* *
* Returns: (type filename): the current directory, or %NULL * Returns: (nullable) (type filename): the current directory, or %NULL
* *
* Since: 2.28 * Since: 2.28
**/ **/