[gtk/text: 9/26] Add a test for GtkPassworkEntry



commit 3c1842952384e9c188138575fcef7d94fcb470b5
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]