Merge lp:~nataliabidart/ubuntu-sso-client/resize-so-password-can-be-changed into lp:ubuntu-sso-client
Status: | Merged |
---|---|
Approved by: | Chad Miller |
Approved revision: | 659 |
Merged at revision: | 656 |
Proposed branch: | lp:~nataliabidart/ubuntu-sso-client/resize-so-password-can-be-changed |
Merge into: | lp:ubuntu-sso-client |
Diff against target: |
183 lines (+48/-45) 3 files modified
data/ui.glade (+9/-2) ubuntu_sso/gtk/gui.py (+25/-26) ubuntu_sso/gtk/tests/test_gui.py (+14/-17) |
To merge this branch: | bzr merge lp:~nataliabidart/ubuntu-sso-client/resize-so-password-can-be-changed |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Chad Miller (community) | Approve | ||
dobey (community) | Approve | ||
Review via email: mp+42135@code.launchpad.net |
Commit message
* Added a gtk.Notebook to ensure proper window resize at startup (LP: #682669).
* Also, enabled window resizing to be more user friendly.
Description of the change
To test, first let's reproduce the problem on trunk. In an updated trunk, run:
* killall ubuntu-sso-login; DEBUG=True PYTHONPATH=. ./bin/ubuntu-
* open d-feet and execute the 'login' method of the com.ubuntu.sso service, /com/ubuntu/
'Test', {}
Then, in the newly shown GTK ui, click on "I've forgotten my password" button and enter the email address:
<email address hidden>
and hit Next. You'll see the resulting screen and you'll be scared (3 text entries that doesn't fit the main window).
Now, using this proposed branch repeat the procedure (be sure to close and re open d-feet) and check that the main window now has proper size for all the screens.
If you feel brave enough you could change the font dpi from System -> Preferences -> Appearence -> Fonts -> Details (I've tried with 200 dpi).
Instead of catching size-allocations and performing some arithmetic magic, I think you should let them pass through.
In ubuntu_ sso/gtk/ gui.py
- obj.connect( 'size-allocate' , self.on_ size_allocate)
Now, you can remove .on_size_allocate altogether.