[libdazzle: 2/4] suggestions: Unset buffer's suggestion when entry is cleared
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle: 2/4] suggestions: Unset buffer's suggestion when entry is cleared
- Date: Wed, 30 Aug 2017 02:14:22 +0000 (UTC)
commit 4e730ae3229a49839fbe079624a70788fef0c2a5
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Tue Aug 29 21:06:55 2017 -0500
suggestions: Unset buffer's suggestion when entry is cleared
If there is no text in the entry, then it's not possible to provide a
sensible suggestion.
src/suggestions/dzl-suggestion-entry.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/suggestions/dzl-suggestion-entry.c b/src/suggestions/dzl-suggestion-entry.c
index 05d48a2..4c7f5c8 100644
--- a/src/suggestions/dzl-suggestion-entry.c
+++ b/src/suggestions/dzl-suggestion-entry.c
@@ -242,6 +242,7 @@ dzl_suggestion_entry_changed (GtkEditable *editable)
if (text == NULL || *text == '\0')
{
+ dzl_suggestion_entry_buffer_set_suggestion (priv->buffer, NULL);
g_signal_emit (self, signals [HIDE_SUGGESTIONS], 0);
DZL_GOTO (finish);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]