[gnome-keyring] gcr: Use place holder text in viewer unlock prompt.



commit eed4146a886704249a5a6feceb495fc3d2d8c137
Author: Stef Walter <stefw collabora co uk>
Date:   Thu Sep 1 12:10:40 2011 +0200

    gcr: Use place holder text in viewer unlock prompt.
    
     * Displays 'Password' in the box where the user types the password.

 gcr/gcr-unlock-renderer.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gcr/gcr-unlock-renderer.c b/gcr/gcr-unlock-renderer.c
index b30d922..9df7807 100644
--- a/gcr/gcr-unlock-renderer.c
+++ b/gcr/gcr-unlock-renderer.c
@@ -169,6 +169,9 @@ _gcr_unlock_renderer_init (GcrUnlockRenderer *self)
 	gtk_box_pack_start (GTK_BOX (box), GTK_WIDGET (self->pv->entry), TRUE, FALSE, 0);
 	gtk_widget_show (GTK_WIDGET (self->pv->entry));
 	g_object_unref (buffer);
+#if GTK_CHECK_VERSION (3,1,1)
+	gtk_entry_set_placeholder_text (self->pv->entry, _("Password"));
+#endif
 
 	button = gtk_button_new_with_label (_("Unlock"));
 	gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE, 0);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]