[gnome-builder] spellchecker: use tooltip on "Change to" entry instead of on icon



commit 365d3ba992c77de41451b37ef72369a48d0e0d59
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Sun Jul 30 11:41:10 2017 +0200

    spellchecker: use tooltip on "Change to" entry instead of on icon
    
    Tooltip on the icon is not working and we already use another tooltip
    on the "Add word" entry, so stay consistent.

 plugins/spellcheck/gbp-spell-widget.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/plugins/spellcheck/gbp-spell-widget.c b/plugins/spellcheck/gbp-spell-widget.c
index 6a1d3b8..64d362f 100644
--- a/plugins/spellcheck/gbp-spell-widget.c
+++ b/plugins/spellcheck/gbp-spell-widget.c
@@ -1036,10 +1036,8 @@ gbp_spell_widget_init (GbpSpellWidget *self)
 
   gtk_widget_init_template (GTK_WIDGET (self));
 
-  /* FIXME: do not work, Gtk+ bug */
-  gtk_entry_set_icon_tooltip_text (self->word_entry,
-                                   GTK_ENTRY_ICON_SECONDARY,
-                                   _("The word is not in the dictionary"));
+  gtk_widget_set_tooltip_text (GTK_WIDGET (self->word_entry),
+                               _("The word is not in the dictionary"));
 
   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]