diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-03-03 16:38:09 +0100 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-03-03 16:53:15 +0100 |
commit | 0714f9d0e4ccf814487758711ad215c533420e1b (patch) | |
tree | 3999511e900bac6d160e2f3c0ba9bdb7f154d923 /src/nautilus-query-editor.c | |
parent | b6a4a76dd817d5c14418f0e9781c227fab8daace (diff) | |
download | nautilus-0714f9d0e4ccf814487758711ad215c533420e1b.tar.gz |
general: allow to search from any part of the stack
Expose the search function on the whole stack.
We will need it for searches from the gnome-shell provider.
https://bugzilla.gnome.org/show_bug.cgi?id=762076
Diffstat (limited to 'src/nautilus-query-editor.c')
-rw-r--r-- | src/nautilus-query-editor.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c index 0421fb96b..a9e452adb 100644 --- a/src/nautilus-query-editor.c +++ b/src/nautilus-query-editor.c @@ -726,3 +726,15 @@ nautilus_query_editor_set_query (NautilusQueryEditor *editor, g_free (text); } + +void +nautilus_query_editor_set_text (NautilusQueryEditor *editor, + const gchar *text) +{ + NautilusQueryEditorPrivate *priv; + + priv = nautilus_query_editor_get_instance_private (editor); + + /* The handler of the entry will take care of everything */ + gtk_entry_set_text (GTK_ENTRY (priv->entry), text); +} |