~teemperor/pantheon-greeter/new-ui

« back to all changes in this revision

Viewing changes to src/CredentialsArea.vala

  • Committer: Raphael Isemann
  • Date: 2013-11-19 15:32:38 UTC
  • Revision ID: teemperor@googlemail.com-20131119153238-e0lq8vqlypbrc71v
push for testing

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
    public Entry create_password_field () {
45
45
        var password = new Entry ();
46
46
        password.caps_lock_warning = true;
 
47
        //replace the letters with dots
 
48
        password.set_visibility (false);
47
49
        password.set_icon_from_icon_name (Gtk.EntryIconPosition.SECONDARY, "go-jump-symbolic");
48
50
        password.icon_press.connect ((pos, event) => {
49
51
            if (pos == Gtk.EntryIconPosition.SECONDARY) {
92
94
 
93
95
        var password = create_password_field ();
94
96
        password.margin_top = 11;
95
 
        attach (password, 0, 0, 1, 1);
 
97
        attach (password, 0, 1, 1, 1);
96
98
    }
97
99
 
98
100
}
106
108
 
107
109
        var password = create_password_field ();
108
110
        password.margin_top = 11;
109
 
        attach (password, 0, 0, 1, 1);
 
111
        attach (password, 0, 1, 1, 1);
110
112
    }
111
113
}
112
114
 
123
125
        });
124
126
        attach (login_btn, 0, 1, 1, 1);
125
127
    }
126
 
}
 
 
b'\\ No newline at end of file'
 
128
}