Merge lp:~dobey/ubuntuone-client/accessible-prefs into lp:ubuntuone-client
- accessible-prefs
- Merge into trunk
Proposed by
dobey
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Vincenzo Di Somma | ||||
Approved revision: | 222 | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~dobey/ubuntuone-client/accessible-prefs | ||||
Merge into: | lp:ubuntuone-client | ||||
Diff against target: |
801 lines 7 files modified
Makefile.am (+2/-0) bin/ubuntuone-client-applet (+58/-246) bin/ubuntuone-client-preferences (+349/-0) data/Makefile.am (+2/-1) data/ubuntuone-client-preferences.desktop.in (+9/-0) docs/man/ubuntuone-client-preferences.1 (+16/-0) po/POTFILES.in (+2/-0) |
||||
To merge this branch: | bzr merge lp:~dobey/ubuntuone-client/accessible-prefs | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vincenzo Di Somma (community) | Approve | ||
Rodrigo Moya (community) | Approve | ||
Review via email: mp+12524@code.launchpad.net |
Commit message
Split the preferences dialog to a separate app
Add a launcher to System->Preferences for preferences app
Add man page for preferences app
Add DBus object class and methods to applet for getting preferences changes
Description of the change
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'Makefile.am' | |||
2 | --- Makefile.am 2009-08-24 20:22:32 +0000 | |||
3 | +++ Makefile.am 2009-09-28 14:55:20 +0000 | |||
4 | @@ -19,6 +19,7 @@ | |||
5 | 19 | # Install our scripts and extra data here | 19 | # Install our scripts and extra data here |
6 | 20 | bin_SCRIPTS = \ | 20 | bin_SCRIPTS = \ |
7 | 21 | bin/ubuntuone-client-applet \ | 21 | bin/ubuntuone-client-applet \ |
8 | 22 | bin/ubuntuone-client-preferences \ | ||
9 | 22 | bin/u1sdtool \ | 23 | bin/u1sdtool \ |
10 | 23 | bin/u1sync | 24 | bin/u1sync |
11 | 24 | 25 | ||
12 | @@ -26,6 +27,7 @@ | |||
13 | 26 | 27 | ||
14 | 27 | manfilesdir = $(mandir)/man1 | 28 | manfilesdir = $(mandir)/man1 |
15 | 28 | manfiles_DATA = \ | 29 | manfiles_DATA = \ |
16 | 30 | docs/man/ubuntuone-client-preferences.1 \ | ||
17 | 29 | docs/man/ubuntuone-client-applet.1 \ | 31 | docs/man/ubuntuone-client-applet.1 \ |
18 | 30 | docs/man/u1sdtool.1 \ | 32 | docs/man/u1sdtool.1 \ |
19 | 31 | docs/man/u1sync.1 | 33 | docs/man/u1sync.1 |
20 | 32 | 34 | ||
21 | === modified file 'bin/ubuntuone-client-applet' | |||
22 | --- bin/ubuntuone-client-applet 2009-09-18 13:24:52 +0000 | |||
23 | +++ bin/ubuntuone-client-applet 2009-09-28 14:55:20 +0000 | |||
24 | @@ -53,6 +53,9 @@ | |||
25 | 53 | 53 | ||
26 | 54 | _ = gettext.gettext | 54 | _ = gettext.gettext |
27 | 55 | 55 | ||
28 | 56 | APPLET_BUS_NAME = "com.ubuntuone.ClientApplet" | ||
29 | 57 | APPLET_CONFIG_NAME = APPLET_BUS_NAME + ".Config" | ||
30 | 58 | |||
31 | 56 | DBUS_IFACE_NAME = "com.ubuntuone.SyncDaemon" | 59 | DBUS_IFACE_NAME = "com.ubuntuone.SyncDaemon" |
32 | 57 | DBUS_IFACE_SYNC_NAME = "com.ubuntuone.SyncDaemon.SyncDaemon" | 60 | DBUS_IFACE_SYNC_NAME = "com.ubuntuone.SyncDaemon.SyncDaemon" |
33 | 58 | DBUS_IFACE_STATUS_NAME = "com.ubuntuone.SyncDaemon.Status" | 61 | DBUS_IFACE_STATUS_NAME = "com.ubuntuone.SyncDaemon.Status" |
34 | @@ -383,6 +386,20 @@ | |||
35 | 383 | 386 | ||
36 | 384 | 387 | ||
37 | 385 | 388 | ||
38 | 389 | def do_config_open(): | ||
39 | 390 | """Opens the preferences dialog.""" | ||
40 | 391 | paths = os.environ["PATH"].split(":") | ||
41 | 392 | dirpath = os.path.join(os.getcwd(), "bin") | ||
42 | 393 | if os.path.isdir(dirpath): | ||
43 | 394 | paths.insert(0, dirpath) | ||
44 | 395 | os.environ["PATH"] = ":".join(paths) | ||
45 | 396 | try: | ||
46 | 397 | ret = subprocess.call(["ubuntuone-client-preferences"]) | ||
47 | 398 | except OSError: | ||
48 | 399 | ret = -1 | ||
49 | 400 | if ret != 0: | ||
50 | 401 | logger.error(_("Failed to open Ubuntu One preferences")) | ||
51 | 402 | |||
52 | 386 | def do_xdg_open(path_or_url): | 403 | def do_xdg_open(path_or_url): |
53 | 387 | """Utility method to run xdg-open with path_or_url.""" | 404 | """Utility method to run xdg-open with path_or_url.""" |
54 | 388 | ret = subprocess.call(["xdg-open", path_or_url]) | 405 | ret = subprocess.call(["xdg-open", path_or_url]) |
55 | @@ -449,11 +466,12 @@ | |||
56 | 449 | self.__total = 0 | 466 | self.__total = 0 |
57 | 450 | self.__last_id = 0 | 467 | self.__last_id = 0 |
58 | 451 | 468 | ||
59 | 452 | # Config dialog! | ||
60 | 453 | self.__conf_dialog = AppletConfigDialog(self, self.__config) | ||
61 | 454 | |||
62 | 455 | self.__bus = dbus.SessionBus() | 469 | self.__bus = dbus.SessionBus() |
63 | 456 | 470 | ||
64 | 471 | # Our own DBus service, for the config to deal with | ||
65 | 472 | self.__service = AppletConfig(icon=self) | ||
66 | 473 | |||
67 | 474 | # DBus signal handling | ||
68 | 457 | self.__bus.add_signal_receiver( | 475 | self.__bus.add_signal_receiver( |
69 | 458 | handler_function=self.__status_changed, | 476 | handler_function=self.__status_changed, |
70 | 459 | signal_name="StatusChanged", | 477 | signal_name="StatusChanged", |
71 | @@ -474,9 +492,15 @@ | |||
72 | 474 | 492 | ||
73 | 475 | gobject.idle_add(self.__get_root) | 493 | gobject.idle_add(self.__get_root) |
74 | 476 | 494 | ||
78 | 477 | def update_config(self): | 495 | def set_visibility_config(self, visibility): |
79 | 478 | """Update internal reference to the config when it changes.""" | 496 | """Update the visibility configuration.""" |
80 | 479 | self.__show_when = self.__config.getint("ubuntuone", "show_applet") | 497 | self.__show_when = int(visibility) |
81 | 498 | self.__config.set("ubuntuone", "show_applet", str(self.__show_when)) | ||
82 | 499 | self.update_visibility() | ||
83 | 500 | |||
84 | 501 | def set_connection_config(self, connect): | ||
85 | 502 | """Update the connection config.""" | ||
86 | 503 | self.__config.set("ubuntuone", "connect", str(connect)) | ||
87 | 480 | 504 | ||
88 | 481 | def __update_transfer_status(self, done=False): | 505 | def __update_transfer_status(self, done=False): |
89 | 482 | """Update the status display.""" | 506 | """Update the status display.""" |
90 | @@ -852,9 +876,6 @@ | |||
91 | 852 | 876 | ||
92 | 853 | def __quit_applet(self, menuitem, data=None): | 877 | def __quit_applet(self, menuitem, data=None): |
93 | 854 | """Quit the daemon and closes the applet.""" | 878 | """Quit the daemon and closes the applet.""" |
94 | 855 | with open(CONF_FILE, "w+b") as f: | ||
95 | 856 | self.__config.write(f) | ||
96 | 857 | |||
97 | 858 | def quit_error(e): | 879 | def quit_error(e): |
98 | 859 | """Just log and ignore.""" | 880 | """Just log and ignore.""" |
99 | 860 | logger.error(_("Quit Error: %s") % e.get_dbus_message()) | 881 | logger.error(_("Quit Error: %s") % e.get_dbus_message()) |
100 | @@ -929,7 +950,7 @@ | |||
101 | 929 | 950 | ||
102 | 930 | def __open_config(self, data=None): | 951 | def __open_config(self, data=None): |
103 | 931 | """Opens the preferences dialog.""" | 952 | """Opens the preferences dialog.""" |
105 | 932 | self.__conf_dialog.show() | 953 | do_config_open() |
106 | 933 | 954 | ||
107 | 934 | def __add_to_places(self): | 955 | def __add_to_places(self): |
108 | 935 | """Add the managed directory to the .gtk-bookmarks file.""" | 956 | """Add the managed directory to the .gtk-bookmarks file.""" |
109 | @@ -974,249 +995,40 @@ | |||
110 | 974 | self.__status_changed({'name' : 'UNKNOWN_ERROR'}) | 995 | self.__status_changed({'name' : 'UNKNOWN_ERROR'}) |
111 | 975 | 996 | ||
112 | 976 | 997 | ||
347 | 977 | class AppletConfigDialog(gtk.Dialog): | 998 | class AppletConfig(dbus.service.Object): |
348 | 978 | """Preferences dialog.""" | 999 | """DBus Service object""" |
349 | 979 | 1000 | ||
350 | 980 | def __init__(self, icon=None, config=None, *args, **kw): | 1001 | def __init__(self, icon, *args, **kwargs): |
351 | 981 | """Initializes our custom StatusIcon based widget.""" | 1002 | """Initialize our magic.""" |
352 | 982 | super(AppletConfigDialog, self).__init__(*args, **kw) | 1003 | self.icon = icon |
353 | 983 | self.set_title(_("Ubuntu One Preferences")) | 1004 | self.path = "/config" |
354 | 984 | self.set_has_separator(False) | 1005 | self.bus = dbus.SessionBus() |
355 | 985 | self.add_button(gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE) | 1006 | bus_name = dbus.service.BusName(APPLET_BUS_NAME, |
356 | 986 | self.set_default_response(gtk.RESPONSE_CLOSE) | 1007 | bus=self.bus) |
357 | 987 | self.set_icon_name("ubuntuone-client") | 1008 | dbus.service.Object.__init__(self, bus_name=bus_name, |
358 | 988 | 1009 | object_path=self.path) | |
359 | 989 | self.connect("close", self.__handle_response, gtk.RESPONSE_CLOSE) | 1010 | |
360 | 990 | self.connect("response", self.__handle_response) | 1011 | @dbus.service.method(APPLET_CONFIG_NAME, |
361 | 991 | 1012 | in_signature='i', out_signature='') | |
362 | 992 | self.__icon = icon | 1013 | def set_visibility_config(self, visibility): |
363 | 993 | self.config = config | 1014 | self.icon.set_visibility_config(visibility) |
364 | 994 | 1015 | ||
365 | 995 | self.bw_enabled = False | 1016 | @dbus.service.method(APPLET_CONFIG_NAME, |
366 | 996 | self.up_limit = 2097152 | 1017 | in_signature='i', out_signature='') |
367 | 997 | self.dn_limit = 2097152 | 1018 | def set_connection_config(self, connect): |
368 | 998 | 1019 | self.icon.set_connection_config(connect) | |
369 | 999 | self.__bus = dbus.SessionBus() | 1020 | |
370 | 1000 | 1021 | ||
137 | 1001 | try: | ||
138 | 1002 | client = self.__bus.get_object(DBUS_IFACE_NAME, "/config") | ||
139 | 1003 | iface = dbus.Interface(client, DBUS_IFACE_CONFIG_NAME) | ||
140 | 1004 | iface.get_throttling_limits( | ||
141 | 1005 | reply_handler=self.__got_limits, | ||
142 | 1006 | error_handler=self.__throttle_error) | ||
143 | 1007 | iface.bandwidth_throttling_enabled( | ||
144 | 1008 | reply_handler=self.__got_enabled, | ||
145 | 1009 | error_handler=self.__throttle_error) | ||
146 | 1010 | except DBusException, e: | ||
147 | 1011 | self.__throttle_error(e) | ||
148 | 1012 | |||
149 | 1013 | # Timeout ID to avoid spamming DBus from spinbutton changes | ||
150 | 1014 | self.__update_id = 0 | ||
151 | 1015 | |||
152 | 1016 | self.__construct() | ||
153 | 1017 | |||
154 | 1018 | |||
155 | 1019 | def __throttle_error(self, error): | ||
156 | 1020 | """Error getting throttling config.""" | ||
157 | 1021 | logger.error(_("Error getting throttle config: %s") % | ||
158 | 1022 | error.get_dbus_message()) | ||
159 | 1023 | |||
160 | 1024 | def __got_limits(self, limits): | ||
161 | 1025 | """Got the throttling limits.""" | ||
162 | 1026 | self.up_limit = int(limits['upload']) | ||
163 | 1027 | self.dn_limit = int(limits['download']) | ||
164 | 1028 | |||
165 | 1029 | def __got_enabled(self, enabled): | ||
166 | 1030 | """Got the throttling enabled config.""" | ||
167 | 1031 | self.bw_enabled = bool(enabled) | ||
168 | 1032 | |||
169 | 1033 | def __update_bw_settings(self): | ||
170 | 1034 | """Update the bandwidth throttling config in syncdaemon.""" | ||
171 | 1035 | self.bw_enabled = self.limit_check.get_active() | ||
172 | 1036 | self.up_limit = self.up_spin.get_value_as_int() * 1024 | ||
173 | 1037 | self.dn_limit = self.dn_spin.get_value_as_int() * 1024 | ||
174 | 1038 | |||
175 | 1039 | try: | ||
176 | 1040 | client = self.__bus.get_object(DBUS_IFACE_NAME, "/config") | ||
177 | 1041 | iface = dbus.Interface(client, DBUS_IFACE_CONFIG_NAME) | ||
178 | 1042 | iface.set_throttling_limits(self.dn_limit, self.up_limit, | ||
179 | 1043 | reply_handler=dbus_async, | ||
180 | 1044 | error_handler=self.__throttle_error) | ||
181 | 1045 | if self.bw_enabled: | ||
182 | 1046 | iface.enable_bandwidth_throttling( | ||
183 | 1047 | reply_handler=dbus_async, | ||
184 | 1048 | error_handler=self.__throttle_error) | ||
185 | 1049 | else: | ||
186 | 1050 | iface.disable_bandwidth_throttling( | ||
187 | 1051 | reply_handler=dbus_async, | ||
188 | 1052 | error_handler=self.__throttle_error) | ||
189 | 1053 | except DBusException, e: | ||
190 | 1054 | self.__throttle_error(e) | ||
191 | 1055 | |||
192 | 1056 | def __handle_response(self, dialog, response): | ||
193 | 1057 | """Handle the dialog's response.""" | ||
194 | 1058 | self.hide() | ||
195 | 1059 | self.config.set("ubuntuone", "show_applet", | ||
196 | 1060 | self.show_menu.get_active()) | ||
197 | 1061 | self.config.set("ubuntuone", "connect", | ||
198 | 1062 | self.conn_menu.get_active()) | ||
199 | 1063 | |||
200 | 1064 | self.__update_bw_settings() | ||
201 | 1065 | |||
202 | 1066 | with open(CONF_FILE, "w+b") as f: | ||
203 | 1067 | self.config.write(f) | ||
204 | 1068 | |||
205 | 1069 | def __show_menu_changed(self, menu, data=None): | ||
206 | 1070 | """Update the config for showing the applet.""" | ||
207 | 1071 | value = menu.get_active() | ||
208 | 1072 | self.config.set("ubuntuone", "show_applet", str(value)) | ||
209 | 1073 | self.__icon.update_config() | ||
210 | 1074 | self.__icon.update_visibility() | ||
211 | 1075 | |||
212 | 1076 | def __conn_menu_changed(self, menu, data=None): | ||
213 | 1077 | """Update the config for showing the applet.""" | ||
214 | 1078 | self.config.set("ubuntuone", "connect", str(menu.get_active())) | ||
215 | 1079 | |||
216 | 1080 | def __bw_limit_toggled(self, button, data=None): | ||
217 | 1081 | """Toggle the bw limit panel.""" | ||
218 | 1082 | self.bw_enabled = self.limit_check.get_active() | ||
219 | 1083 | self.bw_table.set_sensitive(self.bw_enabled) | ||
220 | 1084 | try: | ||
221 | 1085 | client = self.__bus.get_object(DBUS_IFACE_NAME, "/config") | ||
222 | 1086 | iface = dbus.Interface(client, DBUS_IFACE_CONFIG_NAME) | ||
223 | 1087 | iface.set_throttling_limits(self.dn_limit, self.up_limit, | ||
224 | 1088 | reply_handler=dbus_async, | ||
225 | 1089 | error_handler=self.__throttle_error) | ||
226 | 1090 | if self.bw_enabled: | ||
227 | 1091 | iface.enable_bandwidth_throttling( | ||
228 | 1092 | reply_handler=dbus_async, | ||
229 | 1093 | error_handler=self.__throttle_error) | ||
230 | 1094 | else: | ||
231 | 1095 | iface.disable_bandwidth_throttling( | ||
232 | 1096 | reply_handler=dbus_async, | ||
233 | 1097 | error_handler=self.__throttle_error) | ||
234 | 1098 | except DBusException, e: | ||
235 | 1099 | self.__throttle_error(e) | ||
236 | 1100 | |||
237 | 1101 | def __spinner_changed(self, button, data=None): | ||
238 | 1102 | """Remove timeout and add anew.""" | ||
239 | 1103 | if self.__update_id != 0: | ||
240 | 1104 | gobject.source_remove(self.__update_id) | ||
241 | 1105 | |||
242 | 1106 | self.__update_id = gobject.timeout_add_seconds( | ||
243 | 1107 | 1, self.__update_bw_settings) | ||
244 | 1108 | |||
245 | 1109 | def __construct(self): | ||
246 | 1110 | """Construct the dialog's layout.""" | ||
247 | 1111 | area = self.get_content_area() | ||
248 | 1112 | |||
249 | 1113 | vbox = gtk.VBox(spacing=12) | ||
250 | 1114 | vbox.set_border_width(12) | ||
251 | 1115 | area.add(vbox) | ||
252 | 1116 | vbox.show() | ||
253 | 1117 | |||
254 | 1118 | # Put the first set of options in a table. | ||
255 | 1119 | table = gtk.Table(rows=2, columns=2) | ||
256 | 1120 | table.set_row_spacings(12) | ||
257 | 1121 | table.set_col_spacings(6) | ||
258 | 1122 | vbox.add(table) | ||
259 | 1123 | table.show() | ||
260 | 1124 | |||
261 | 1125 | label = gtk.Label(_("_Show icon:")) | ||
262 | 1126 | label.set_use_underline(True) | ||
263 | 1127 | label.set_alignment(0, 0.5) | ||
264 | 1128 | table.attach(label, 0, 1, 0, 1) | ||
265 | 1129 | label.show() | ||
266 | 1130 | |||
267 | 1131 | self.show_menu = gtk.combo_box_new_text() | ||
268 | 1132 | self.show_menu.connect("changed", self.__show_menu_changed) | ||
269 | 1133 | label.set_mnemonic_widget(self.show_menu) | ||
270 | 1134 | self.show_menu.append_text(_("Always")) | ||
271 | 1135 | self.show_menu.append_text(_("When updating")) | ||
272 | 1136 | self.show_menu.append_text(_("Never")) | ||
273 | 1137 | self.show_menu.set_active(self.config.getint("ubuntuone", | ||
274 | 1138 | "show_applet")) | ||
275 | 1139 | table.attach(self.show_menu, 1, 2, 0, 1) | ||
276 | 1140 | self.show_menu.show() | ||
277 | 1141 | |||
278 | 1142 | label = gtk.Label(_("Connect on start:")) | ||
279 | 1143 | label.set_use_underline(True) | ||
280 | 1144 | label.set_alignment(0, 0.5) | ||
281 | 1145 | table.attach(label, 0, 1, 1, 2) | ||
282 | 1146 | label.show() | ||
283 | 1147 | |||
284 | 1148 | self.conn_menu = gtk.combo_box_new_text() | ||
285 | 1149 | self.conn_menu.connect("changed", self.__conn_menu_changed) | ||
286 | 1150 | label.set_mnemonic_widget(self.conn_menu) | ||
287 | 1151 | self.conn_menu.append_text(_("Automatically")) | ||
288 | 1152 | self.conn_menu.append_text(_("Remember last")) | ||
289 | 1153 | self.conn_menu.append_text(_("Never")) | ||
290 | 1154 | self.conn_menu.set_active(self.config.getint("ubuntuone", | ||
291 | 1155 | "connect")) | ||
292 | 1156 | table.attach(self.conn_menu, 1, 2, 1, 2) | ||
293 | 1157 | self.conn_menu.show() | ||
294 | 1158 | |||
295 | 1159 | # Bandwidth limiting | ||
296 | 1160 | self.limit_check = gtk.CheckButton(_("_Limit Bandwidth Usage")) | ||
297 | 1161 | self.limit_check.connect("toggled", self.__bw_limit_toggled) | ||
298 | 1162 | vbox.add(self.limit_check) | ||
299 | 1163 | self.limit_check.show() | ||
300 | 1164 | |||
301 | 1165 | hbox = gtk.HBox(spacing=12) | ||
302 | 1166 | vbox.add(hbox) | ||
303 | 1167 | hbox.show() | ||
304 | 1168 | |||
305 | 1169 | label = gtk.Label() | ||
306 | 1170 | hbox.add(label) | ||
307 | 1171 | label.show() | ||
308 | 1172 | |||
309 | 1173 | # Now put the bw limit bits in a table too | ||
310 | 1174 | self.bw_table = gtk.Table(rows=2, columns=2) | ||
311 | 1175 | self.bw_table.set_row_spacings(6) | ||
312 | 1176 | self.bw_table.set_col_spacings(6) | ||
313 | 1177 | self.bw_table.set_sensitive(False) | ||
314 | 1178 | hbox.add(self.bw_table) | ||
315 | 1179 | self.bw_table.show() | ||
316 | 1180 | |||
317 | 1181 | # Upload speed | ||
318 | 1182 | label = gtk.Label(_("Maximum _upload speed (KB/s):")) | ||
319 | 1183 | label.set_use_underline(True) | ||
320 | 1184 | label.set_alignment(0, 0.5) | ||
321 | 1185 | self.bw_table.attach(label, 0, 1, 0, 1) | ||
322 | 1186 | label.show() | ||
323 | 1187 | |||
324 | 1188 | adjustment = gtk.Adjustment(value=2048.0, lower=0.0, upper=4096.0, | ||
325 | 1189 | step_incr=64.0, page_incr=128.0) | ||
326 | 1190 | self.up_spin = gtk.SpinButton(adjustment) | ||
327 | 1191 | self.up_spin.connect("value-changed", self.__spinner_changed) | ||
328 | 1192 | label.set_mnemonic_widget(self.up_spin) | ||
329 | 1193 | self.bw_table.attach(self.up_spin, 1, 2, 0, 1) | ||
330 | 1194 | self.up_spin.show() | ||
331 | 1195 | |||
332 | 1196 | # Download speed | ||
333 | 1197 | label = gtk.Label(_("Maximum _download speed (KB/s):")) | ||
334 | 1198 | label.set_use_underline(True) | ||
335 | 1199 | label.set_alignment(0, 0.5) | ||
336 | 1200 | self.bw_table.attach(label, 0, 1, 1, 2) | ||
337 | 1201 | label.show() | ||
338 | 1202 | adjustment = gtk.Adjustment(value=2048.0, lower=0.0, upper=4096.0, | ||
339 | 1203 | step_incr=64.0, page_incr=128.0) | ||
340 | 1204 | self.dn_spin = gtk.SpinButton(adjustment) | ||
341 | 1205 | self.dn_spin.connect("value-changed", self.__spinner_changed) | ||
342 | 1206 | label.set_mnemonic_widget(self.dn_spin) | ||
343 | 1207 | self.bw_table.attach(self.dn_spin, 1, 2, 1, 2) | ||
344 | 1208 | self.dn_spin.show() | ||
345 | 1209 | |||
346 | 1210 | |||
371 | 1211 | if __name__ == "__main__": | 1022 | if __name__ == "__main__": |
372 | 1212 | gettext.bindtextdomain(clientdefs.GETTEXT_PACKAGE, clientdefs.LOCALEDIR) | 1023 | gettext.bindtextdomain(clientdefs.GETTEXT_PACKAGE, clientdefs.LOCALEDIR) |
373 | 1213 | gettext.textdomain(clientdefs.GETTEXT_PACKAGE) | 1024 | gettext.textdomain(clientdefs.GETTEXT_PACKAGE) |
374 | 1214 | 1025 | ||
375 | 1215 | # Register DBus service for making sure we run only one instance | 1026 | # Register DBus service for making sure we run only one instance |
376 | 1216 | bus = dbus.SessionBus() | 1027 | bus = dbus.SessionBus() |
378 | 1217 | if bus.request_name("com.ubuntuone.ClientApplet", dbus.bus.NAME_FLAG_DO_NOT_QUEUE) == dbus.bus.REQUEST_NAME_REPLY_EXISTS: | 1028 | if bus.request_name(APPLET_BUS_NAME, dbus.bus.NAME_FLAG_DO_NOT_QUEUE) == dbus.bus.REQUEST_NAME_REPLY_EXISTS: |
379 | 1218 | print _("Ubuntu One client applet already running, quitting") | 1029 | print _("Ubuntu One client applet already running, quitting") |
381 | 1219 | sys.exit(-1) | 1030 | do_config_open() |
382 | 1031 | sys.exit(0) | ||
383 | 1220 | 1032 | ||
384 | 1221 | gtk.rc_parse_string(RCSTYLE) | 1033 | gtk.rc_parse_string(RCSTYLE) |
385 | 1222 | 1034 | ||
386 | 1223 | 1035 | ||
387 | === added file 'bin/ubuntuone-client-preferences' | |||
388 | --- bin/ubuntuone-client-preferences 1970-01-01 00:00:00 +0000 | |||
389 | +++ bin/ubuntuone-client-preferences 2009-09-28 14:55:20 +0000 | |||
390 | @@ -0,0 +1,349 @@ | |||
391 | 1 | #!/usr/bin/python | ||
392 | 2 | |||
393 | 3 | # ubuntuone-client-applet - Tray icon applet for managing Ubuntu One | ||
394 | 4 | # | ||
395 | 5 | # Author: Rodney Dawes <rodney.dawes@canonical.com> | ||
396 | 6 | # | ||
397 | 7 | # Copyright 2009 Canonical Ltd. | ||
398 | 8 | # | ||
399 | 9 | # This program is free software: you can redistribute it and/or modify it | ||
400 | 10 | # under the terms of the GNU General Public License version 3, as published | ||
401 | 11 | # by the Free Software Foundation. | ||
402 | 12 | # | ||
403 | 13 | # This program is distributed in the hope that it will be useful, but | ||
404 | 14 | # WITHOUT ANY WARRANTY; without even the implied warranties of | ||
405 | 15 | # MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR | ||
406 | 16 | # PURPOSE. See the GNU General Public License for more details. | ||
407 | 17 | # | ||
408 | 18 | # You should have received a copy of the GNU General Public License along | ||
409 | 19 | # with this program. If not, see <http://www.gnu.org/licenses/>. | ||
410 | 20 | |||
411 | 21 | from __future__ import with_statement | ||
412 | 22 | |||
413 | 23 | import pygtk | ||
414 | 24 | pygtk.require('2.0') | ||
415 | 25 | import gobject | ||
416 | 26 | import gtk | ||
417 | 27 | import os | ||
418 | 28 | import gettext | ||
419 | 29 | from ubuntuone import clientdefs | ||
420 | 30 | |||
421 | 31 | import dbus.service | ||
422 | 32 | from ConfigParser import ConfigParser | ||
423 | 33 | from dbus.exceptions import DBusException | ||
424 | 34 | from dbus.mainloop.glib import DBusGMainLoop | ||
425 | 35 | from xdg.BaseDirectory import xdg_config_home | ||
426 | 36 | |||
427 | 37 | DBusGMainLoop(set_as_default=True) | ||
428 | 38 | |||
429 | 39 | _ = gettext.gettext | ||
430 | 40 | |||
431 | 41 | APPLET_IFACE_NAME = "com.ubuntuone.ClientApplet" | ||
432 | 42 | APPLET_IFACE_CONFIG_NAME = APPLET_IFACE_NAME + ".Config" | ||
433 | 43 | |||
434 | 44 | DBUS_IFACE_NAME = "com.ubuntuone.SyncDaemon" | ||
435 | 45 | DBUS_IFACE_CONFIG_NAME = DBUS_IFACE_NAME + ".Config" | ||
436 | 46 | |||
437 | 47 | # Why thank you GTK+ for enforcing style-set and breaking API | ||
438 | 48 | RCSTYLE = """ | ||
439 | 49 | style 'dialogs' { | ||
440 | 50 | GtkDialog::action-area-border = 12 | ||
441 | 51 | GtkDialog::button-spacing = 6 | ||
442 | 52 | GtkDialog::content-area-border = 0 | ||
443 | 53 | } | ||
444 | 54 | widget_class '*Dialog*' style 'dialogs' | ||
445 | 55 | """ | ||
446 | 56 | |||
447 | 57 | CONF_FILE = os.path.join(xdg_config_home, "ubuntuone", "ubuntuone-client.conf") | ||
448 | 58 | |||
449 | 59 | def dbus_async(*args): | ||
450 | 60 | """Simple handler to make dbus do stuff async.""" | ||
451 | 61 | pass | ||
452 | 62 | |||
453 | 63 | |||
454 | 64 | class AppletConfigDialog(gtk.Dialog): | ||
455 | 65 | """Preferences dialog.""" | ||
456 | 66 | |||
457 | 67 | def __init__(self, config=None, *args, **kw): | ||
458 | 68 | """Initializes our config dialog.""" | ||
459 | 69 | super(AppletConfigDialog, self).__init__(*args, **kw) | ||
460 | 70 | self.set_title(_("Ubuntu One Preferences")) | ||
461 | 71 | self.set_has_separator(False) | ||
462 | 72 | self.add_button(gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE) | ||
463 | 73 | self.set_default_response(gtk.RESPONSE_CLOSE) | ||
464 | 74 | self.set_icon_name("ubuntuone-client") | ||
465 | 75 | |||
466 | 76 | self.connect("close", self.__handle_response, gtk.RESPONSE_CLOSE) | ||
467 | 77 | self.connect("response", self.__handle_response) | ||
468 | 78 | |||
469 | 79 | self.config = config | ||
470 | 80 | |||
471 | 81 | self.bw_enabled = False | ||
472 | 82 | self.up_limit = 2097152 | ||
473 | 83 | self.dn_limit = 2097152 | ||
474 | 84 | |||
475 | 85 | self.__bus = dbus.SessionBus() | ||
476 | 86 | |||
477 | 87 | try: | ||
478 | 88 | client = self.__bus.get_object(DBUS_IFACE_NAME, "/config") | ||
479 | 89 | iface = dbus.Interface(client, DBUS_IFACE_CONFIG_NAME) | ||
480 | 90 | iface.get_throttling_limits( | ||
481 | 91 | reply_handler=self.__got_limits, | ||
482 | 92 | error_handler=self.__dbus_error) | ||
483 | 93 | iface.bandwidth_throttling_enabled( | ||
484 | 94 | reply_handler=self.__got_enabled, | ||
485 | 95 | error_handler=self.__dbus_error) | ||
486 | 96 | except DBusException, e: | ||
487 | 97 | self.__dbus_error(e) | ||
488 | 98 | |||
489 | 99 | # Timeout ID to avoid spamming DBus from spinbutton changes | ||
490 | 100 | self.__update_id = 0 | ||
491 | 101 | |||
492 | 102 | self.load_config() | ||
493 | 103 | |||
494 | 104 | self.__construct() | ||
495 | 105 | |||
496 | 106 | def load_config(self): | ||
497 | 107 | """Load the configuration, and initilize if empty.""" | ||
498 | 108 | self.config = ConfigParser() | ||
499 | 109 | self.config.read(CONF_FILE) | ||
500 | 110 | |||
501 | 111 | if not self.config.has_section("ubuntuone"): | ||
502 | 112 | self.config.add_section("ubuntuone") | ||
503 | 113 | |||
504 | 114 | if not self.config.has_option("ubuntuone", "show_applet"): | ||
505 | 115 | self.config.set("ubuntuone", "show_applet", "1") | ||
506 | 116 | |||
507 | 117 | if not self.config.has_option("ubuntuone", "connect"): | ||
508 | 118 | self.config.set("ubuntuone", "connect", "0") | ||
509 | 119 | |||
510 | 120 | if not self.config.has_option("ubuntuone", "connected"): | ||
511 | 121 | self.config.set("ubuntuone", "connected", "False") | ||
512 | 122 | |||
513 | 123 | if not os.path.exists(CONF_FILE): | ||
514 | 124 | self.save_config() | ||
515 | 125 | |||
516 | 126 | def save_config(self): | ||
517 | 127 | """Write the configuration back to a file.""" | ||
518 | 128 | with open(CONF_FILE, "w+b") as f: | ||
519 | 129 | self.config.write(f) | ||
520 | 130 | |||
521 | 131 | def quit(self): | ||
522 | 132 | """Exit the main loop.""" | ||
523 | 133 | gtk.main_quit() | ||
524 | 134 | |||
525 | 135 | def __dbus_error(self, error): | ||
526 | 136 | """Error getting throttling config.""" | ||
527 | 137 | print repr(error) | ||
528 | 138 | |||
529 | 139 | def __got_limits(self, limits): | ||
530 | 140 | """Got the throttling limits.""" | ||
531 | 141 | self.up_limit = int(limits['upload']) | ||
532 | 142 | self.dn_limit = int(limits['download']) | ||
533 | 143 | |||
534 | 144 | def __got_enabled(self, enabled): | ||
535 | 145 | """Got the throttling enabled config.""" | ||
536 | 146 | self.bw_enabled = bool(enabled) | ||
537 | 147 | |||
538 | 148 | def __update_bw_settings(self): | ||
539 | 149 | """Update the bandwidth throttling config in syncdaemon.""" | ||
540 | 150 | self.bw_enabled = self.limit_check.get_active() | ||
541 | 151 | self.up_limit = self.up_spin.get_value_as_int() * 1024 | ||
542 | 152 | self.dn_limit = self.dn_spin.get_value_as_int() * 1024 | ||
543 | 153 | |||
544 | 154 | try: | ||
545 | 155 | client = self.__bus.get_object(DBUS_IFACE_NAME, "/config") | ||
546 | 156 | iface = dbus.Interface(client, DBUS_IFACE_CONFIG_NAME) | ||
547 | 157 | iface.set_throttling_limits(self.dn_limit, self.up_limit, | ||
548 | 158 | reply_handler=dbus_async, | ||
549 | 159 | error_handler=self.__dbus_error) | ||
550 | 160 | if self.bw_enabled: | ||
551 | 161 | iface.enable_bandwidth_throttling( | ||
552 | 162 | reply_handler=dbus_async, | ||
553 | 163 | error_handler=self.__dbus_error) | ||
554 | 164 | else: | ||
555 | 165 | iface.disable_bandwidth_throttling( | ||
556 | 166 | reply_handler=dbus_async, | ||
557 | 167 | error_handler=self.__dbus_error) | ||
558 | 168 | except DBusException, e: | ||
559 | 169 | self.__dbus_error(e) | ||
560 | 170 | |||
561 | 171 | def __handle_response(self, dialog, response): | ||
562 | 172 | """Handle the dialog's response.""" | ||
563 | 173 | self.hide() | ||
564 | 174 | self.config.set("ubuntuone", "show_applet", | ||
565 | 175 | self.show_menu.get_active()) | ||
566 | 176 | self.config.set("ubuntuone", "connect", | ||
567 | 177 | self.conn_menu.get_active()) | ||
568 | 178 | |||
569 | 179 | self.__update_bw_settings() | ||
570 | 180 | self.save_config() | ||
571 | 181 | gtk.main_quit() | ||
572 | 182 | |||
573 | 183 | def __show_menu_changed(self, menu, data=None): | ||
574 | 184 | """Update the config for showing the applet.""" | ||
575 | 185 | value = menu.get_active() | ||
576 | 186 | self.config.set("ubuntuone", "show_applet", str(value)) | ||
577 | 187 | try: | ||
578 | 188 | client = self.__bus.get_object(APPLET_IFACE_NAME, "/config") | ||
579 | 189 | iface = dbus.Interface(client, APPLET_IFACE_CONFIG_NAME) | ||
580 | 190 | iface.set_visibility_config(value, reply_handler=dbus_async, | ||
581 | 191 | error_handler=self.__dbus_error) | ||
582 | 192 | except DBusException, e: | ||
583 | 193 | self.__dbus_error(e) | ||
584 | 194 | |||
585 | 195 | def __conn_menu_changed(self, menu, data=None): | ||
586 | 196 | """Update the config for showing the applet.""" | ||
587 | 197 | value = menu.get_active() | ||
588 | 198 | self.config.set("ubuntuone", "connect", str(value)) | ||
589 | 199 | try: | ||
590 | 200 | client = self.__bus.get_object(APPLET_IFACE_NAME, "/config") | ||
591 | 201 | iface = dbus.Interface(client, APPLET_IFACE_CONFIG_NAME) | ||
592 | 202 | iface.set_connection_config(value, reply_handler=dbus_async, | ||
593 | 203 | error_handler=self.__dbus_error) | ||
594 | 204 | except DBusException, e: | ||
595 | 205 | self.__dbus_error(e) | ||
596 | 206 | |||
597 | 207 | def __bw_limit_toggled(self, button, data=None): | ||
598 | 208 | """Toggle the bw limit panel.""" | ||
599 | 209 | self.bw_enabled = self.limit_check.get_active() | ||
600 | 210 | self.bw_table.set_sensitive(self.bw_enabled) | ||
601 | 211 | try: | ||
602 | 212 | client = self.__bus.get_object(DBUS_IFACE_NAME, "/config") | ||
603 | 213 | iface = dbus.Interface(client, DBUS_IFACE_CONFIG_NAME) | ||
604 | 214 | iface.set_throttling_limits(self.dn_limit, self.up_limit, | ||
605 | 215 | reply_handler=dbus_async, | ||
606 | 216 | error_handler=self.__dbus_error) | ||
607 | 217 | if self.bw_enabled: | ||
608 | 218 | iface.enable_bandwidth_throttling( | ||
609 | 219 | reply_handler=dbus_async, | ||
610 | 220 | error_handler=self.__dbus_error) | ||
611 | 221 | else: | ||
612 | 222 | iface.disable_bandwidth_throttling( | ||
613 | 223 | reply_handler=dbus_async, | ||
614 | 224 | error_handler=self.__dbus_error) | ||
615 | 225 | except DBusException, e: | ||
616 | 226 | self.__dbus_error(e) | ||
617 | 227 | |||
618 | 228 | def __spinner_changed(self, button, data=None): | ||
619 | 229 | """Remove timeout and add anew.""" | ||
620 | 230 | if self.__update_id != 0: | ||
621 | 231 | gobject.source_remove(self.__update_id) | ||
622 | 232 | |||
623 | 233 | self.__update_id = gobject.timeout_add_seconds( | ||
624 | 234 | 1, self.__update_bw_settings) | ||
625 | 235 | |||
626 | 236 | def __construct(self): | ||
627 | 237 | """Construct the dialog's layout.""" | ||
628 | 238 | area = self.get_content_area() | ||
629 | 239 | |||
630 | 240 | vbox = gtk.VBox(spacing=12) | ||
631 | 241 | vbox.set_border_width(12) | ||
632 | 242 | area.add(vbox) | ||
633 | 243 | vbox.show() | ||
634 | 244 | |||
635 | 245 | # Put the first set of options in a table. | ||
636 | 246 | table = gtk.Table(rows=2, columns=2) | ||
637 | 247 | table.set_row_spacings(12) | ||
638 | 248 | table.set_col_spacings(6) | ||
639 | 249 | vbox.add(table) | ||
640 | 250 | table.show() | ||
641 | 251 | |||
642 | 252 | label = gtk.Label(_("_Show icon:")) | ||
643 | 253 | label.set_use_underline(True) | ||
644 | 254 | label.set_alignment(0, 0.5) | ||
645 | 255 | table.attach(label, 0, 1, 0, 1) | ||
646 | 256 | label.show() | ||
647 | 257 | |||
648 | 258 | self.show_menu = gtk.combo_box_new_text() | ||
649 | 259 | self.show_menu.connect("changed", self.__show_menu_changed) | ||
650 | 260 | label.set_mnemonic_widget(self.show_menu) | ||
651 | 261 | self.show_menu.append_text(_("Always")) | ||
652 | 262 | self.show_menu.append_text(_("When updating")) | ||
653 | 263 | self.show_menu.append_text(_("Never")) | ||
654 | 264 | self.show_menu.set_active(self.config.getint("ubuntuone", | ||
655 | 265 | "show_applet")) | ||
656 | 266 | table.attach(self.show_menu, 1, 2, 0, 1) | ||
657 | 267 | self.show_menu.show() | ||
658 | 268 | |||
659 | 269 | label = gtk.Label(_("Connect on start:")) | ||
660 | 270 | label.set_use_underline(True) | ||
661 | 271 | label.set_alignment(0, 0.5) | ||
662 | 272 | table.attach(label, 0, 1, 1, 2) | ||
663 | 273 | label.show() | ||
664 | 274 | |||
665 | 275 | self.conn_menu = gtk.combo_box_new_text() | ||
666 | 276 | self.conn_menu.connect("changed", self.__conn_menu_changed) | ||
667 | 277 | label.set_mnemonic_widget(self.conn_menu) | ||
668 | 278 | self.conn_menu.append_text(_("Automatically")) | ||
669 | 279 | self.conn_menu.append_text(_("Remember last")) | ||
670 | 280 | self.conn_menu.append_text(_("Never")) | ||
671 | 281 | self.conn_menu.set_active(self.config.getint("ubuntuone", | ||
672 | 282 | "connect")) | ||
673 | 283 | table.attach(self.conn_menu, 1, 2, 1, 2) | ||
674 | 284 | self.conn_menu.show() | ||
675 | 285 | |||
676 | 286 | # Bandwidth limiting | ||
677 | 287 | self.limit_check = gtk.CheckButton(_("_Limit Bandwidth Usage")) | ||
678 | 288 | self.limit_check.connect("toggled", self.__bw_limit_toggled) | ||
679 | 289 | vbox.add(self.limit_check) | ||
680 | 290 | self.limit_check.show() | ||
681 | 291 | |||
682 | 292 | hbox = gtk.HBox(spacing=12) | ||
683 | 293 | vbox.add(hbox) | ||
684 | 294 | hbox.show() | ||
685 | 295 | |||
686 | 296 | label = gtk.Label() | ||
687 | 297 | hbox.add(label) | ||
688 | 298 | label.show() | ||
689 | 299 | |||
690 | 300 | # Now put the bw limit bits in a table too | ||
691 | 301 | self.bw_table = gtk.Table(rows=2, columns=2) | ||
692 | 302 | self.bw_table.set_row_spacings(6) | ||
693 | 303 | self.bw_table.set_col_spacings(6) | ||
694 | 304 | self.bw_table.set_sensitive(False) | ||
695 | 305 | hbox.add(self.bw_table) | ||
696 | 306 | self.bw_table.show() | ||
697 | 307 | |||
698 | 308 | # Upload speed | ||
699 | 309 | label = gtk.Label(_("Maximum _upload speed (KB/s):")) | ||
700 | 310 | label.set_use_underline(True) | ||
701 | 311 | label.set_alignment(0, 0.5) | ||
702 | 312 | self.bw_table.attach(label, 0, 1, 0, 1) | ||
703 | 313 | label.show() | ||
704 | 314 | |||
705 | 315 | adjustment = gtk.Adjustment(value=2048.0, lower=0.0, upper=4096.0, | ||
706 | 316 | step_incr=64.0, page_incr=128.0) | ||
707 | 317 | self.up_spin = gtk.SpinButton(adjustment) | ||
708 | 318 | self.up_spin.connect("value-changed", self.__spinner_changed) | ||
709 | 319 | label.set_mnemonic_widget(self.up_spin) | ||
710 | 320 | self.bw_table.attach(self.up_spin, 1, 2, 0, 1) | ||
711 | 321 | self.up_spin.show() | ||
712 | 322 | |||
713 | 323 | # Download speed | ||
714 | 324 | label = gtk.Label(_("Maximum _download speed (KB/s):")) | ||
715 | 325 | label.set_use_underline(True) | ||
716 | 326 | label.set_alignment(0, 0.5) | ||
717 | 327 | self.bw_table.attach(label, 0, 1, 1, 2) | ||
718 | 328 | label.show() | ||
719 | 329 | adjustment = gtk.Adjustment(value=2048.0, lower=0.0, upper=4096.0, | ||
720 | 330 | step_incr=64.0, page_incr=128.0) | ||
721 | 331 | self.dn_spin = gtk.SpinButton(adjustment) | ||
722 | 332 | self.dn_spin.connect("value-changed", self.__spinner_changed) | ||
723 | 333 | label.set_mnemonic_widget(self.dn_spin) | ||
724 | 334 | self.bw_table.attach(self.dn_spin, 1, 2, 1, 2) | ||
725 | 335 | self.dn_spin.show() | ||
726 | 336 | |||
727 | 337 | |||
728 | 338 | if __name__ == "__main__": | ||
729 | 339 | gettext.bindtextdomain(clientdefs.GETTEXT_PACKAGE, clientdefs.LOCALEDIR) | ||
730 | 340 | gettext.textdomain(clientdefs.GETTEXT_PACKAGE) | ||
731 | 341 | |||
732 | 342 | gtk.rc_parse_string(RCSTYLE) | ||
733 | 343 | |||
734 | 344 | try: | ||
735 | 345 | dialog = AppletConfigDialog() | ||
736 | 346 | dialog.show() | ||
737 | 347 | gtk.main() | ||
738 | 348 | except KeyboardInterrupt: | ||
739 | 349 | pass | ||
740 | 0 | 350 | ||
741 | === modified file 'data/Makefile.am' | |||
742 | --- data/Makefile.am 2009-08-12 19:28:32 +0000 | |||
743 | +++ data/Makefile.am 2009-09-28 14:55:20 +0000 | |||
744 | @@ -12,7 +12,8 @@ | |||
745 | 12 | oauth_DATA = oauth_registration.d/ubuntuone | 12 | oauth_DATA = oauth_registration.d/ubuntuone |
746 | 13 | 13 | ||
747 | 14 | desktopdir = $(datadir)/applications | 14 | desktopdir = $(datadir)/applications |
749 | 15 | desktop_in_files = ubuntuone-client-applet.desktop.in | 15 | desktop_in_files = ubuntuone-client-applet.desktop.in \ |
750 | 16 | ubuntuone-client-preferences.desktop.in | ||
751 | 16 | desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) | 17 | desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) |
752 | 17 | 18 | ||
753 | 18 | @INTLTOOL_DESKTOP_RULE@ | 19 | @INTLTOOL_DESKTOP_RULE@ |
754 | 19 | 20 | ||
755 | === added file 'data/ubuntuone-client-preferences.desktop.in' | |||
756 | --- data/ubuntuone-client-preferences.desktop.in 1970-01-01 00:00:00 +0000 | |||
757 | +++ data/ubuntuone-client-preferences.desktop.in 2009-09-28 14:55:20 +0000 | |||
758 | @@ -0,0 +1,9 @@ | |||
759 | 1 | [Desktop Entry] | ||
760 | 2 | Name=Ubuntu One | ||
761 | 3 | _Comment=Configure the Ubuntu One file sharing client | ||
762 | 4 | Exec=ubuntuone-client-preferences | ||
763 | 5 | Icon=ubuntuone-client | ||
764 | 6 | Terminal=false | ||
765 | 7 | Type=Application | ||
766 | 8 | Categories=GTK;Settings; | ||
767 | 9 | X-Ubuntu-Gettext-Domain=ubuntuone-client | ||
768 | 0 | 10 | ||
769 | === added file 'docs/man/ubuntuone-client-preferences.1' | |||
770 | --- docs/man/ubuntuone-client-preferences.1 1970-01-01 00:00:00 +0000 | |||
771 | +++ docs/man/ubuntuone-client-preferences.1 2009-09-28 14:55:20 +0000 | |||
772 | @@ -0,0 +1,16 @@ | |||
773 | 1 | .TH UBUNTUONE-CLIENT-PREFERENCES 1 | ||
774 | 2 | |||
775 | 3 | .SH NAME | ||
776 | 4 | ubuntuone-client-preferences \- A dialog for configuring Ubuntu One | ||
777 | 5 | |||
778 | 6 | .SH SYNOPSYS | ||
779 | 7 | .B ubutuone-client-preferences | ||
780 | 8 | |||
781 | 9 | .SH DESCRIPTION | ||
782 | 10 | This manual page briefly documents the | ||
783 | 11 | .BR ubuntuone-client-preferences | ||
784 | 12 | process, which provides a configuration dialog for configuring | ||
785 | 13 | Ubuntu One file sharing. | ||
786 | 14 | |||
787 | 15 | .SH AUTHOR | ||
788 | 16 | This manual page was written by Rodney Dawes <rodney.dawes@canonical.com> | ||
789 | 0 | 17 | ||
790 | === modified file 'po/POTFILES.in' | |||
791 | --- po/POTFILES.in 2009-06-17 16:08:17 +0000 | |||
792 | +++ po/POTFILES.in 2009-09-28 14:55:20 +0000 | |||
793 | @@ -1,7 +1,9 @@ | |||
794 | 1 | bin/ubuntuone-client-applet | 1 | bin/ubuntuone-client-applet |
795 | 2 | bin/ubuntuone-client-preferences | ||
796 | 2 | data/emblem-ubuntuone-downloading.icon.in | 3 | data/emblem-ubuntuone-downloading.icon.in |
797 | 3 | data/emblem-ubuntuone-unsynchronized.icon.in | 4 | data/emblem-ubuntuone-unsynchronized.icon.in |
798 | 4 | data/emblem-ubuntuone-uploading.icon.in | 5 | data/emblem-ubuntuone-uploading.icon.in |
799 | 5 | data/ubuntuone-client-applet.desktop.in | 6 | data/ubuntuone-client-applet.desktop.in |
800 | 7 | data/ubuntuone-client-preferences.desktop.in | ||
801 | 6 | nautilus/ubuntuone-nautilus.c | 8 | nautilus/ubuntuone-nautilus.c |
802 | 7 | 9 |
Looks good to me