search entry: Add a tooltip to th clear icon

Similar to what we do for the caps-lock warning in the
password entry.

Closes #1483
This commit is contained in:
Matthias Clasen 2019-02-19 00:32:35 -05:00
parent a417956054
commit 0ef6c3afed

View File

@ -505,6 +505,7 @@ gtk_search_entry_init (GtkSearchEntry *entry)
g_signal_connect (priv->entry, "activate", G_CALLBACK (activate_cb), entry);
priv->icon = gtk_image_new_from_icon_name ("edit-clear-symbolic");
gtk_widget_set_tooltip_text (priv->icon, _("Clear entry"));
gtk_container_add (GTK_CONTAINER (priv->box), GTK_WIDGET (priv->icon));
gtk_widget_hide (priv->icon);