diff options
author | sunflowerskater <sunflowerskater@tutanota.com> | 2022-12-05 14:23:35 -0300 |
---|---|---|
committer | Will Thompson <wjt@endlessos.org> | 2023-01-09 13:11:01 +0000 |
commit | 3b824a379c4b92df9985987873a62980a5a7ae13 (patch) | |
tree | f8b712c87ba39e89b3f69d05b5ac95a23b787444 /gnome-initial-setup | |
parent | 17416fe1b287eedf8aa535e6d1f86f6fc4d25c8f (diff) | |
download | gnome-initial-setup-3b824a379c4b92df9985987873a62980a5a7ae13.tar.gz |
timezone: Add placeholder to location entry
Previously, this search entry lacked a placeholder. The GNOME HIG
recommends placeholders for text fields.
https://developer.gnome.org/hig/patterns/controls/text-fields.html
Fixes: https://gitlab.gnome.org/GNOME/gnome-initial-setup/-/issues/144
Diffstat (limited to 'gnome-initial-setup')
-rw-r--r-- | gnome-initial-setup/pages/timezone/gis-location-entry.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gnome-initial-setup/pages/timezone/gis-location-entry.c b/gnome-initial-setup/pages/timezone/gis-location-entry.c index de8fdb8..177db92 100644 --- a/gnome-initial-setup/pages/timezone/gis-location-entry.c +++ b/gnome-initial-setup/pages/timezone/gis-location-entry.c @@ -114,6 +114,7 @@ gis_location_entry_init (GisLocationEntry *entry) priv = entry->priv = gis_location_entry_get_instance_private (entry); priv->entry = gtk_entry_new (); + gtk_entry_set_placeholder_text (GTK_ENTRY (priv->entry), _("Search cities")); gtk_widget_set_parent (priv->entry, GTK_WIDGET (entry)); gtk_editable_init_delegate (GTK_EDITABLE (entry)); |