forked from AuroraMiddleware/gtk
gtk: mark few GtkFileChooser functions as nullable
- get_file, if no file is selected returns a NULL - get_id, if the interface doesn't implement such function returns NULL
This commit is contained in:
parent
38b8da0f5f
commit
afeb7f668b
@ -523,7 +523,7 @@ gtk_file_chooser_set_file (GtkFileChooser *chooser,
|
|||||||
* If the file chooser is in folder mode, this function returns
|
* If the file chooser is in folder mode, this function returns
|
||||||
* the selected folder.
|
* the selected folder.
|
||||||
*
|
*
|
||||||
* Returns: (transfer full): a selected `GFile`. You own the
|
* Returns: (transfer full) (nullable): a selected `GFile`. You own the
|
||||||
* returned file; use g_object_unref() to release it.
|
* returned file; use g_object_unref() to release it.
|
||||||
*/
|
*/
|
||||||
GFile *
|
GFile *
|
||||||
@ -794,7 +794,7 @@ gtk_file_chooser_set_choice (GtkFileChooser *chooser,
|
|||||||
*
|
*
|
||||||
* Gets the currently selected option in the 'choice' with the given ID.
|
* Gets the currently selected option in the 'choice' with the given ID.
|
||||||
*
|
*
|
||||||
* Returns: the ID of the currently selected option
|
* Returns: (nullable): the ID of the currently selected option
|
||||||
*/
|
*/
|
||||||
const char *
|
const char *
|
||||||
gtk_file_chooser_get_choice (GtkFileChooser *chooser,
|
gtk_file_chooser_get_choice (GtkFileChooser *chooser,
|
||||||
|
Loading…
Reference in New Issue
Block a user