Merge lp:~nataliabidart/ubuntu-sso-client/resize-so-password-can-be-changed into lp:ubuntu-sso-client
| Status: | Merged |
|---|---|
| Approved by: | Chad Miller on 2010-11-29 |
| 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 on 2010-11-29 | ||
| dobey (community) | 2010-11-29 | Approve on 2010-11-29 | |
|
Review via email:
|
|||
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).
- 659. By Natalia Bidart on 2010-11-29
-
Reverting changes to setup.py
| Natalia Bidart (nataliabidart) wrote : | # |
We need to connect to size-allocate to make labels resize properly on window resizing.
| Chad Miller (cmiller) wrote : | # |
I see the problem with resized wrapping Labels now.
I still think this signal shouldn't be touched, but I don't have a better idea at present.
I say the new behavior is a "Low" bug and it should be in Launchpad. A bad fix for a High-impact bug is okay for now.

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.