[gtk/text] search entry: Add a tooltip to th clear icon
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/text] search entry: Add a tooltip to th clear icon
- Date: Tue, 19 Feb 2019 05:33:50 +0000 (UTC)
commit 0ef6c3afedf4b0eb100077169ff281cd0fd313d7
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Feb 19 00:32:35 2019 -0500
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
gtk/gtksearchentry.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtksearchentry.c b/gtk/gtksearchentry.c
index b4c47f4c71..a73e32963d 100644
--- a/gtk/gtksearchentry.c
+++ b/gtk/gtksearchentry.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]