Merge lp:~nataliabidart/ubuntu/natty/ubuntuone-control-panel/ubuntuone-control-panel-1.0.0 into lp:ubuntu/natty/ubuntuone-control-panel

Proposed by Natalia Bidart
Status: Merged
Merged at revision: 22
Proposed branch: lp:~nataliabidart/ubuntu/natty/ubuntuone-control-panel/ubuntuone-control-panel-1.0.0
Merge into: lp:ubuntu/natty/ubuntuone-control-panel
Diff against target: 115 lines (+23/-20)
4 files modified
PKG-INFO (+1/-19)
debian/changelog (+10/-0)
setup.py (+1/-1)
ubuntuone/controlpanel/gtk/gui.py (+11/-0)
To merge this branch: bzr merge lp:~nataliabidart/ubuntu/natty/ubuntuone-control-panel/ubuntuone-control-panel-1.0.0
Reviewer Review Type Date Requested Status
Ubuntu Sponsors Pending
Review via email: mp+58398@code.launchpad.net

Description of the change

  * New upstream release:
  [ Natalia B. Bidart <email address hidden> ]
      - Hide and show replications boxes when replication list is ready and the
      user clicked on Services tab (hack to solve LP: #750309).

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks for your work there, uploaded

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'PKG-INFO'
2--- PKG-INFO 2011-04-15 21:23:44 +0000
3+++ PKG-INFO 2011-04-19 21:27:29 +0000
4@@ -1,6 +1,6 @@
5 Metadata-Version: 1.1
6 Name: ubuntuone-control-panel
7-Version: 0.10.0
8+Version: 1.0.0
9 Summary: Ubuntu One Control Panel
10 Home-page: https://launchpad.net/ubuntuone-control-panel
11 Author: Natalia Bidart
12@@ -8,22 +8,4 @@
13 License: GPL v3
14 Description: Application to manage a Ubuntu One account. Provides aDBus service to query/modify all the Ubuntu One bits.
15 Platform: UNKNOWN
16-Requires: apt
17-Requires: aptdaemon
18-Requires: dbus
19-Requires: defer
20-Requires: desktopcouch.application.replication_services
21-Requires: gi.repository
22-Requires: gobject
23-Requires: gtk
24-Requires: mocker
25-Requires: oauth
26-Requires: pango
27-Requires: simplejson
28-Requires: twisted.application
29-Requires: twisted.internet
30-Requires: twisted.python.failure
31-Requires: twisted.trial.unittest
32-Requires: twisted.web
33-Requires: ubuntu_sso
34 Provides: ubuntuone
35
36=== modified file 'debian/changelog'
37--- debian/changelog 2011-04-15 21:24:34 +0000
38+++ debian/changelog 2011-04-19 21:27:29 +0000
39@@ -1,3 +1,13 @@
40+ubuntuone-control-panel (1.0.0-0ubuntu1) UNRELEASED; urgency=low
41+
42+ * New upstream release:
43+
44+ [ Natalia B. Bidart <natalia.bidart@canonical.com> ]
45+ - Hide and show replications boxes when replication list is ready and the
46+ user clicked on Services tab (hack to solve LP: #750309).
47+
48+ -- Natalia Bidart (nessita) <nataliabidart@gmail.com> Tue, 19 Apr 2011 18:10:20 -0300
49+
50 ubuntuone-control-panel (0.10.0-0ubuntu1) natty; urgency=low
51
52 * New upstream release.
53
54=== modified file 'setup.py'
55--- setup.py 2011-04-15 21:23:44 +0000
56+++ setup.py 2011-04-19 21:27:29 +0000
57@@ -79,7 +79,7 @@
58
59 DistUtilsExtra.auto.setup(
60 name='ubuntuone-control-panel',
61- version='0.10.0',
62+ version='1.0.0',
63 license='GPL v3',
64 author='Natalia Bidart',
65 author_email='natalia.bidart@canonical.com',
66
67=== modified file 'ubuntuone/controlpanel/gtk/gui.py'
68--- ubuntuone/controlpanel/gtk/gui.py 2011-04-15 21:23:44 +0000
69+++ ubuntuone/controlpanel/gtk/gui.py 2011-04-19 21:27:29 +0000
70@@ -1213,6 +1213,7 @@
71 self.package_manager = package_manager.PackageManager()
72 self.install_box = None
73
74+ self._replications_ready = False # hack to solve LP: #750309
75 self.backend.connect_to_signal('ReplicationsInfoReady',
76 self.on_replications_info_ready)
77 self.backend.connect_to_signal('ReplicationsInfoError',
78@@ -1278,6 +1279,7 @@
79 @log_call(logger.debug)
80 def load_replications(self, *args):
81 """Load replications info."""
82+ self._replications_ready = False # hack to solve LP: #750309
83 # ask replications to the backend
84 self.message.start()
85 self.backend.replications_info(reply_handler=NO_OP,
86@@ -1308,6 +1310,7 @@
87 check_button=check_button,
88 dependency=pkg, dependency_name=name)
89 setattr(self, '%s_service' % sid, child)
90+ self._replications_ready = True # hack to solve LP: #750309
91
92 @log_call(logger.error)
93 def on_replications_info_error(self, error_dict=None):
94@@ -1318,6 +1321,12 @@
95 else:
96 self.on_error(error_dict=error_dict)
97
98+ def refresh(self):
99+ """If replication list has been loaded, hide and show them."""
100+ if self._replications_ready: # hack to solve LP: #750309
101+ self.replications.hide()
102+ self.replications.show()
103+
104
105 class FileSyncStatus(gtk.HBox, ControlPanelMixin):
106 """A file sync status widget."""
107@@ -1576,6 +1585,8 @@
108
109 self.services_button.set_name(self.SERVICES_BUTTON_NAME)
110 self.services_button.set_tooltip_text(self.SERVICES_BUTTON_TOOLTIP)
111+ self.services_button.connect('clicked',
112+ lambda b: self.services.refresh())
113
114 self.enable_volumes = lambda: self.volumes_button.set_sensitive(True)
115 self.disable_volumes = lambda: self.volumes_button.set_sensitive(False)

Subscribers

People subscribed via source and target branches