[gnome-builder] spellchecker: restore the "Change to" entry suggestions
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] spellchecker: restore the "Change to" entry suggestions
- Date: Sun, 30 Jul 2017 17:29:26 +0000 (UTC)
commit bfac6e17ef32eb95dbbfd753835d3dd9ab02d4db
Author: Sebastien Lafargue <slafargue gnome org>
Date: Sun Jul 30 19:26:20 2017 +0200
spellchecker: restore the "Change to" entry suggestions
When the text in "Change to" entry is not a valid word
(not in the dictionnaries), a mouse right click show
a popup menu with suggestions.
plugins/spellcheck/gbp-spell-widget.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/spellcheck/gbp-spell-widget.c b/plugins/spellcheck/gbp-spell-widget.c
index cd783d5..87c9160 100644
--- a/plugins/spellcheck/gbp-spell-widget.c
+++ b/plugins/spellcheck/gbp-spell-widget.c
@@ -768,7 +768,7 @@ gbp_spell_widget__populate_popup_cb (GbpSpellWidget *self,
checker = gbp_spell_editor_view_addin_get_checker (self->editor_view_addin);
text = gtk_entry_get_text (entry);
- if (self->is_word_entry_valid || ide_str_empty0 (text))
+ if (!self->is_word_entry_valid && !ide_str_empty0 (text))
suggestions = gspell_checker_get_suggestions (checker, text, -1);
if (suggestions == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]