diff options
author | Corey Berla <corey@berla.me> | 2022-09-30 09:03:11 -0700 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2022-12-03 20:14:48 +0000 |
commit | c16f3fd2d9537ad6cf2995a5be3832e605db0f79 (patch) | |
tree | 66b6d7a1556b5d4812935ea897553ec99984b306 | |
parent | b742303cf8d9b12da432a102722a4e2fc2ef59bf (diff) | |
download | nautilus-c16f3fd2d9537ad6cf2995a5be3832e605db0f79.tar.gz |
query-editor: Drop unused code
-rw-r--r-- | src/nautilus-query-editor.c | 15 | ||||
-rw-r--r-- | src/nautilus-query-editor.h | 8 |
2 files changed, 0 insertions, 23 deletions
diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c index 78719d457..a33349197 100644 --- a/src/nautilus-query-editor.c +++ b/src/nautilus-query-editor.c @@ -76,10 +76,6 @@ enum static guint signals[LAST_SIGNAL]; -static void entry_activate_cb (GtkWidget *entry, - NautilusQueryEditor *editor); -static void entry_changed_cb (GtkWidget *entry, - NautilusQueryEditor *editor); static void nautilus_query_editor_changed (NautilusQueryEditor *editor); G_DEFINE_TYPE (NautilusQueryEditor, nautilus_query_editor, GTK_TYPE_WIDGET); @@ -787,17 +783,6 @@ nautilus_query_editor_set_query (NautilusQueryEditor *self, self->change_frozen = FALSE; } -void -nautilus_query_editor_set_text (NautilusQueryEditor *self, - const gchar *text) -{ - g_return_if_fail (NAUTILUS_IS_QUERY_EDITOR (self)); - g_return_if_fail (text != NULL); - - /* The handler of the entry will take care of everything */ - gtk_editable_set_text (GTK_EDITABLE (self->text), text); -} - static gboolean nautilus_gtk_search_entry_is_keynav_event (guint keyval, GdkModifierType state) diff --git a/src/nautilus-query-editor.h b/src/nautilus-query-editor.h index e071f94f1..39b1f5e62 100644 --- a/src/nautilus-query-editor.h +++ b/src/nautilus-query-editor.h @@ -63,14 +63,6 @@ GFile *nautilus_query_editor_get_location (NautilusQueryEditor *editor); */ 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); gboolean nautilus_query_editor_handle_event (NautilusQueryEditor *self, |