[gnome-builder] spellchecker: fix the word entry tooltip text displaying
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] spellchecker: fix the word entry tooltip text displaying
- Date: Sun, 30 Jul 2017 17:29:21 +0000 (UTC)
commit bf91d1e9be2df230bfd90537de3b89372b0a979b
Author: Sebastien Lafargue <slafargue gnome org>
Date: Sun Jul 30 19:25:41 2017 +0200
spellchecker: fix the word entry tooltip text displaying
plugins/spellcheck/gbp-spell-widget.c | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/plugins/spellcheck/gbp-spell-widget.c b/plugins/spellcheck/gbp-spell-widget.c
index c8f24e4..cd783d5 100644
--- a/plugins/spellcheck/gbp-spell-widget.c
+++ b/plugins/spellcheck/gbp-spell-widget.c
@@ -246,10 +246,16 @@ check_word_timeout_cb (GbpSpellWidget *self)
{
g_message ("check error:%s\n", error->message);
}
+ }
- if (!ret)
- icon_name = "dialog-warning-symbolic";
+ if (!ret)
+ {
+ icon_name = "dialog-warning-symbolic";
+ gtk_widget_set_tooltip_text (GTK_WIDGET (self->word_entry),
+ _("The word is not in the dictionary"));
}
+ else
+ gtk_widget_set_tooltip_text (GTK_WIDGET (self->word_entry), NULL);
gtk_entry_set_icon_from_icon_name (self->word_entry,
GTK_ENTRY_ICON_SECONDARY,
@@ -1052,8 +1058,7 @@ gbp_spell_widget_init (GbpSpellWidget *self)
gtk_widget_init_template (GTK_WIDGET (self));
- gtk_widget_set_tooltip_text (GTK_WIDGET (self->word_entry),
- _("The word is not in the dictionary"));
+ gbp_spell_widget__word_entry_changed_cb (self, self->word_entry);
g_signal_connect_swapped (self->dict_words_list,
"key-press-event",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]