[gtk/text: 9/27] Add a test for GtkPassworkEntry
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/text: 9/27] Add a test for GtkPassworkEntry
- Date: Tue, 19 Feb 2019 05:30:50 +0000 (UTC)
commit 210c5d88a2b134044a94fb3d931eb1c6ec11c64c
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Feb 16 22:22:43 2019 -0500
Add a test for GtkPassworkEntry
tests/testentryicons.c | 15 +--------------
1 file changed, 1 insertion(+), 14 deletions(-)
---
diff --git a/tests/testentryicons.c b/tests/testentryicons.c
index bbc8eeb4bd..e6381ed045 100644
--- a/tests/testentryicons.c
+++ b/tests/testentryicons.c
@@ -241,22 +241,9 @@ main (int argc, char **argv)
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
- entry = gtk_entry_new ();
+ entry = gtk_password_entry_new ();
gtk_widget_set_hexpand (entry, TRUE);
gtk_grid_attach (GTK_GRID (grid), entry, 1, 3, 1, 1);
- gtk_entry_set_visibility (GTK_ENTRY (entry), FALSE);
-
- gtk_entry_set_icon_from_icon_name (GTK_ENTRY (entry),
- GTK_ENTRY_ICON_PRIMARY,
- "dialog-password-symbolic");
-
- gtk_entry_set_icon_activatable (GTK_ENTRY (entry),
- GTK_ENTRY_ICON_PRIMARY,
- FALSE);
-
- gtk_entry_set_icon_tooltip_text (GTK_ENTRY (entry),
- GTK_ENTRY_ICON_PRIMARY,
- "The password is hidden for security");
/* Name - Does not set any icons. */
label = gtk_label_new ("Name:");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]