Merge lp:~elementary-pantheon/pantheon-greeter/loginbox-ui-creation into lp:~elementary-pantheon/pantheon-greeter/trunk
Status: | Merged |
---|---|
Approved by: | Corentin Noël |
Approved revision: | 436 |
Merged at revision: | 428 |
Proposed branch: | lp:~elementary-pantheon/pantheon-greeter/loginbox-ui-creation |
Merge into: | lp:~elementary-pantheon/pantheon-greeter/trunk |
Diff against target: |
391 lines (+118/-176) 2 files modified
src/CredentialsArea.vala (+0/-3) src/LoginBox.vala (+118/-173) |
To merge this branch: | bzr merge lp:~elementary-pantheon/pantheon-greeter/loginbox-ui-creation |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Corentin Noël | Approve | ||
Review via email: mp+292189@code.launchpad.net |
Commit message
LoginBox:
* Use grid row and column spacing instead of widget margins
* Code style cleanups
* Don't set label opacity because we either pack or don't
* Remove settings_dummy
* Remove unnecessary cairo drawing code
* Remove obvious comments
* Update license header
* Connect signals in a method
* Use Entry.activate instead of listening for specific keys
* Rename variables to make them more obvious
* Use bind instead of connect to show/hide popover
Description of the change
Trying to make this code more legible T_T
Instead of having 100 different methods to create widgets, just create them all as normal.
Something I have an open question about is if doing the if/else logic to pack widgets there makes sense or if there should be a method like "get_login_widget" so there is only one pack and the if/else happens far away.
Try to make some of these variable names more obvious. names like "label" and "pop" suck.
There's a lot of extra and unnecessary stuff here that is just handled by using Gtk instead of drawing everything manually in Clutter or Cairo. One of these is setting the label opacity. Since that's Gtk now, we either just pack it into the grid or we pack the entry. We don't have to worry about one overlapping the other.
I'm okay with the changes, just a few tips in the inline diff