Merge lp:~ralsina/ubuntuone-control-panel/alerted into lp:ubuntuone-control-panel
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Natalia Bidart on 2012-03-09 | ||||
| Approved revision: | 288 | ||||
| Merged at revision: | 278 | ||||
| Proposed branch: | lp:~ralsina/ubuntuone-control-panel/alerted | ||||
| Merge into: | lp:ubuntuone-control-panel | ||||
| Diff against target: |
234 lines (+117/-13) 5 files modified
docs/ubuntuone-control-panel-qt.1 (+1/-4) ubuntuone/controlpanel/gui/qt/gui.py (+32/-1) ubuntuone/controlpanel/gui/qt/main/__init__.py (+3/-7) ubuntuone/controlpanel/gui/qt/main/tests/test_main.py (+24/-1) ubuntuone/controlpanel/gui/qt/tests/test_gui.py (+57/-0) |
||||
| To merge this branch: | bzr merge lp:~ralsina/ubuntuone-control-panel/alerted | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Natalia Bidart | 2012-03-06 | Approve on 2012-03-09 | |
| Eric Casteleijn (community) | Approve on 2012-03-07 | ||
|
Review via email:
|
|||
Commit Message
- Fixed --alert and --switch-to tabname and updated --help and manpage accordingly
(LP: #940465).
Description of the Change
* Implemented --alert option: Starts with the "urgent" flag set on launcher.
* Remove the "urgent" flag when u1cp gets focus.
* Implemented --switch-to tabname
* Fixed --help
* Updated manpage
- 284. By Roberto Alsina on 2012-03-07
-
merged trunk
| Natalia Bidart (nataliabidart) wrote : | # |
Question, why would you patch self.patch(self.ui, "focusInEvent", lambda ev: False) in the set_urgent test?
Also, can we change this code:
2)
to use something like:
which in turn allows us to do something like:
for tab_name in self.ui.tabs:
tab = getattr(
What do you think?
| Roberto Alsina (ralsina) wrote : | # |
> Question, why would you patch self.patch(self.ui, "focusInEvent", lambda ev:
> False) in the set_urgent test?
Doesn't seem necessary anymore. In a previous version of this, when you create the window, that widget got focus and focusInEvent removed the urgent flag. Will remove.
> Also, can we change this code:
>
> self.ui.
> self.assertEqual(
> self.ui.
> 2)
>
> to use something like:
>
> self.ui.
> self.assertEqual(
> self.ui.
> self.ui.
> panel.ui.devices))
>
> which in turn allows us to do something like:
>
> for tab_name in self.ui.tabs:
> tab = getattr(
> self.ui.
> self.assertEqual(
> self.ui.
> self.ui.
>
> What do you think?
It's a bit verbose, and it has a problem in that we don't want to test the tab switching in order, but something similar is doable.
- 285. By Roberto Alsina on 2012-03-07
-
use widget indexes instead of magic numbers
| Natalia Bidart (nataliabidart) wrote : | # |
Can you please remove this debug line?
print "CALLED:", args, kwargs
Also, after the IRC talk about the --alert not working, can you please remove that altogether? Thanks!
| dobey (dobey) wrote : | # |
We should drop --alert, but keep the unsetting of urgency on focusInEvent.
- 286. By Roberto Alsina on 2012-03-08
-
kill --alert since it's not all that useful.
- 287. By Roberto Alsina on 2012-03-08
-
remove debug print
| Roberto Alsina (ralsina) wrote : | # |
> We should drop --alert, but keep the unsetting of urgency on focusInEvent.
Done!
- 288. By Roberto Alsina on 2012-03-09
-
fix docstring


Looks great!