[gedit] Replace dialog: add placeholder text in the replace entry
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Replace dialog: add placeholder text in the replace entry
- Date: Wed, 14 Jan 2015 21:42:23 +0000 (UTC)
commit d09e15b31d1f57a34c8ed72031c6c049392b6cca
Author: Paolo Borelli <pborelli gnome org>
Date: Wed Jan 14 21:57:10 2015 +0100
Replace dialog: add placeholder text in the replace entry
gedit/gedit-replace-dialog.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-replace-dialog.c b/gedit/gedit-replace-dialog.c
index 9c57c1f..efd437a 100644
--- a/gedit/gedit-replace-dialog.c
+++ b/gedit/gedit-replace-dialog.c
@@ -681,6 +681,7 @@ gedit_replace_dialog_init (GeditReplaceDialog *dlg)
dlg->priv->replace_entry = gedit_history_entry_new ("replace-with-entry", TRUE);
gtk_widget_set_hexpand (GTK_WIDGET (dlg->priv->replace_entry), TRUE);
dlg->priv->replace_text_entry = gedit_history_entry_get_entry (GEDIT_HISTORY_ENTRY
(dlg->priv->replace_entry));
+ gtk_entry_set_placeholder_text (GTK_ENTRY (dlg->priv->replace_text_entry), _("Nothing"));
gtk_entry_set_activates_default (GTK_ENTRY (dlg->priv->replace_text_entry), TRUE);
gtk_grid_attach_next_to (GTK_GRID (dlg->priv->grid),
dlg->priv->replace_entry,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]