#include #define GTK_DISABLE_DEPRECATED int main(int argc, char **argv) { GtkWidget *window, *vbox, *entry1, *entry2; gtk_init (&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); vbox = gtk_vbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER (window), vbox); entry1 = gtk_entry_new (); gtk_box_pack_start (GTK_BOX(vbox), entry1, TRUE, TRUE, 0); entry2 = gtk_entry_new (); gtk_box_pack_start (GTK_BOX(vbox), entry2, TRUE, TRUE, 0); gtk_entry_set_visibility (GTK_ENTRY (entry2), FALSE); gtk_widget_grab_focus (entry2); gtk_widget_show_all(window); gtk_main (); return 0; }