[rhythmbox] source-toolbar: clear search text properly
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] source-toolbar: clear search text properly
- Date: Sun, 16 Oct 2016 06:00:57 +0000 (UTC)
commit 0c3bb4cecd55935b27f496aa9cf331878a174be1
Author: Jonathan Matthew <jonathan d14n org>
Date: Sun Oct 16 15:59:33 2016 +1000
source-toolbar: clear search text properly
The toolbar remembers the search text so it can support incremental
searches. To do this properly it needs to forget its idea of the
search text when the search entry is cleared.
https://bugzilla.gnome.org/show_bug.cgi?id=772997
widgets/rb-source-toolbar.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/widgets/rb-source-toolbar.c b/widgets/rb-source-toolbar.c
index 45516ad..50fe9dd 100644
--- a/widgets/rb-source-toolbar.c
+++ b/widgets/rb-source-toolbar.c
@@ -382,4 +382,6 @@ rb_source_toolbar_clear_search_entry (RBSourceToolbar *toolbar)
{
g_assert (toolbar->priv->search_entry != NULL);
rb_search_entry_clear (toolbar->priv->search_entry);
+ g_free (toolbar->priv->search_text);
+ toolbar->priv->search_text = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]