diff options
author | Ernestas Kulik <ernestask@gnome.org> | 2018-03-18 17:39:23 +0200 |
---|---|---|
committer | Ernestas Kulik <ernestask@gnome.org> | 2018-03-19 17:54:58 +0200 |
commit | d4177720222c2b7847ae95c3dbcd43eb16d2971a (patch) | |
tree | 70720f4ca6b582517974e26a2bbfb24a910d0a2c | |
parent | 7de6ab73183313691bec178f8c85b84f8df7f26b (diff) | |
download | nautilus-d4177720222c2b7847ae95c3dbcd43eb16d2971a.tar.gz |
query-editor: Document public functions in header
So it’s a bit clearer how the return values or parameters should be
managed.
-rw-r--r-- | src/nautilus-query-editor.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/nautilus-query-editor.h b/src/nautilus-query-editor.h index 7f8c97753..9d20dfc58 100644 --- a/src/nautilus-query-editor.h +++ b/src/nautilus-query-editor.h @@ -43,12 +43,44 @@ struct _NautilusQueryEditorClass GtkWidget *nautilus_query_editor_new (void); +/** + * nautilus_query_editor_get_query: + * + * @editor: A #NautilusQueryEditor instance. + * + * Returns: (nullable) (transfer full): The #NautilusQuery for the editor. + */ NautilusQuery *nautilus_query_editor_get_query (NautilusQueryEditor *editor); +/** + * nautilus_query_editor_set_query: + * + * @editor: A #NautilusQueryEditor instance. + * @query: (nullable) (transfer full): The #NautilusQuery for the search. + */ void nautilus_query_editor_set_query (NautilusQueryEditor *editor, NautilusQuery *query); +/** + * nautilus_query_editor_get_location: + * + * @editor: A #NautilusQueryEditor instance. + * + * Returns: (nullable) (transfer full): The location of the current search. + */ GFile *nautilus_query_editor_get_location (NautilusQueryEditor *editor); +/** + * nautilus_query_editor_set_location: + * + * @editor: A #NautilusQueryEditor instance. + * @location: (nullable) (transfer full): The location in which the search will take place. + */ void nautilus_query_editor_set_location (NautilusQueryEditor *editor, GFile *location); +/** + * nautilus_query_editor_set_text: + * + * @editor: A #NautilusQueryEditor instance. + * @text: (not nullable) (transfer none): The search text. + */ void nautilus_query_editor_set_text (NautilusQueryEditor *editor, const gchar *text); |