Merge lp:~chipaca/ubuntuone-client/fix-menu-items into lp:ubuntuone-client
- fix-menu-items
- Merge into trunk
Status: | Merged | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Approved by: | John Lenton | ||||||||||||
Approved revision: | 662 | ||||||||||||
Merged at revision: | 659 | ||||||||||||
Proposed branch: | lp:~chipaca/ubuntuone-client/fix-menu-items | ||||||||||||
Merge into: | lp:ubuntuone-client | ||||||||||||
Diff against target: |
226 lines (+31/-30) 3 files modified
bin/ubuntuone-preferences (+5/-4) nautilus/ubuntuone-nautilus.c (+25/-25) tests/test_preferences.py (+1/-1) |
||||||||||||
To merge this branch: | bzr merge lp:~chipaca/ubuntuone-client/fix-menu-items | ||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vincenzo Di Somma (community) | Approve | ||
Rodrigo Moya (community) | Approve | ||
Review via email: mp+33769@code.launchpad.net |
Vincenzo Di Somma (vds) : | # |
dobey (dobey) wrote : | # |
The attempt to merge lp:~chipaca/ubuntuone-client/fix-menu-items into lp:ubuntuone-client failed.Below is the output from the failed tests.
/usr/bin/
checking for autoconf >= 2.53...
testing autoconf2.50... not found.
testing autoconf... found 2.67
checking for automake >= 1.10...
testing automake-1.11... found 1.11.1
checking for libtool >= 1.5...
testing libtoolize... found 2.2.6b
checking for intltool >= 0.30...
testing intltoolize... found 0.41.1
checking for pkg-config >= 0.14.0...
testing pkg-config... found 0.25
Checking for required M4 macros...
Checking for forbidden M4 macros...
Processing ./configure.ac
Running libtoolize...
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
Running intltoolize...
Running aclocal-1.11...
Running autoconf...
Running autoheader...
Running automake-1.11...
Running ./configure --with-
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for ...
- 661. By John Lenton
-
oops, broke a test
- 662. By John Lenton
-
merged with trunk
Preview Diff
1 | === modified file 'bin/ubuntuone-preferences' | |||
2 | --- bin/ubuntuone-preferences 2010-08-24 21:17:00 +0000 | |||
3 | +++ bin/ubuntuone-preferences 2010-08-26 18:42:46 +0000 | |||
4 | @@ -359,7 +359,7 @@ | |||
5 | 359 | if ((oauth_token and row.get('token') == oauth_token.key or 'FAKE' in row) | 359 | if ((oauth_token and row.get('token') == oauth_token.key or 'FAKE' in row) |
6 | 360 | and fsync_enabled): | 360 | and fsync_enabled): |
7 | 361 | self.bw_chk = ck_btn = gtk.CheckButton( | 361 | self.bw_chk = ck_btn = gtk.CheckButton( |
9 | 362 | _("_Limit Bandwidth Usage")) | 362 | _("_Limit bandwidth")) |
10 | 363 | ck_btn.set_active(self.bw_limited) | 363 | ck_btn.set_active(self.bw_limited) |
11 | 364 | up_lbl = gtk.Label(_("Maximum _upload speed (KB/s):")) | 364 | up_lbl = gtk.Label(_("Maximum _upload speed (KB/s):")) |
12 | 365 | up_lbl.set_alignment(0., .5) | 365 | up_lbl.set_alignment(0., .5) |
13 | @@ -961,7 +961,7 @@ | |||
14 | 961 | self.bw_inst_box.pack_start(self.bw_inst_btn, False, False) | 961 | self.bw_inst_box.pack_start(self.bw_inst_btn, False, False) |
15 | 962 | self.bw_inst_btn.show() | 962 | self.bw_inst_btn.show() |
16 | 963 | 963 | ||
18 | 964 | self.gwib_check = gtk.CheckButton(_("Broadcast Messages _Archive")) | 964 | self.gwib_check = gtk.CheckButton(_("Broadcast messages _archive")) |
19 | 965 | self.gwib_check.set_data('dbname', 'gwibber_messages') | 965 | self.gwib_check.set_data('dbname', 'gwibber_messages') |
20 | 966 | self.gwib_check.connect('toggled', self.__db_check_toggled) | 966 | self.gwib_check.connect('toggled', self.__db_check_toggled) |
21 | 967 | services.pack_start(self.gwib_check, False, False) | 967 | services.pack_start(self.gwib_check, False, False) |
22 | @@ -977,7 +977,7 @@ | |||
23 | 977 | services.pack_start(fbox, False, False) | 977 | services.pack_start(fbox, False, False) |
24 | 978 | fbox.show() | 978 | fbox.show() |
25 | 979 | 979 | ||
27 | 980 | self.files_check = gtk.CheckButton(_("_File Synchronization")) | 980 | self.files_check = gtk.CheckButton(_("_Files")) |
28 | 981 | self.files_check.set_active(False) | 981 | self.files_check.set_active(False) |
29 | 982 | fbox.pack_start(self.files_check, False, False) | 982 | fbox.pack_start(self.files_check, False, False) |
30 | 983 | self.files_check.show() | 983 | self.files_check.show() |
31 | @@ -987,7 +987,8 @@ | |||
32 | 987 | fbox.pack_start(alignment, False, False) | 987 | fbox.pack_start(alignment, False, False) |
33 | 988 | alignment.show() | 988 | alignment.show() |
34 | 989 | 989 | ||
36 | 990 | self.music_check = gtk.CheckButton(_("_Music Download")) | 990 | self.music_check = gtk.CheckButton(_("Ubuntu One _Music Store" |
37 | 991 | " downloads")) | ||
38 | 991 | self.music_check.set_active(True) | 992 | self.music_check.set_active(True) |
39 | 992 | self.music_check.set_sensitive(False) | 993 | self.music_check.set_sensitive(False) |
40 | 993 | alignment.add(self.music_check) | 994 | alignment.add(self.music_check) |
41 | 994 | 995 | ||
42 | === modified file 'nautilus/ubuntuone-nautilus.c' | |||
43 | --- nautilus/ubuntuone-nautilus.c 2010-08-25 18:20:50 +0000 | |||
44 | +++ nautilus/ubuntuone-nautilus.c 2010-08-26 18:42:46 +0000 | |||
45 | @@ -568,7 +568,7 @@ | |||
46 | 568 | uon->cb_data = cb_data; | 568 | uon->cb_data = cb_data; |
47 | 569 | 569 | ||
48 | 570 | root_item = nautilus_menu_item_new ("ubuntuone", | 570 | root_item = nautilus_menu_item_new ("ubuntuone", |
50 | 571 | _("Ubuntu One..."), | 571 | _("_Ubuntu One"), |
51 | 572 | _("Ubuntu One options"), | 572 | _("Ubuntu One options"), |
52 | 573 | "ubuntuone"); | 573 | "ubuntuone"); |
53 | 574 | submenu = nautilus_menu_new (); | 574 | submenu = nautilus_menu_new (); |
54 | @@ -583,7 +583,7 @@ | |||
55 | 583 | if ((is_managed || is_udf) && !is_root && is_dir) { | 583 | if ((is_managed || is_udf) && !is_root && is_dir) { |
56 | 584 | 584 | ||
57 | 585 | item = nautilus_menu_item_new ("ubuntuone-share", | 585 | item = nautilus_menu_item_new ("ubuntuone-share", |
59 | 586 | _("Share on Ubuntu One..."), | 586 | _("_Share..."), |
60 | 587 | _("Share this folder on Ubuntu One"), | 587 | _("Share this folder on Ubuntu One"), |
61 | 588 | "ubuntuone"); | 588 | "ubuntuone"); |
62 | 589 | if (is_pending) | 589 | if (is_pending) |
63 | @@ -596,17 +596,17 @@ | |||
64 | 596 | /* the different tooltips will probably do us no good */ | 596 | /* the different tooltips will probably do us no good */ |
65 | 597 | if (is_root) { | 597 | if (is_root) { |
66 | 598 | item = nautilus_menu_item_new ("ubuntuone-noshare-root", | 598 | item = nautilus_menu_item_new ("ubuntuone-noshare-root", |
68 | 599 | _("Share on Ubuntu One..."), | 599 | _("_Share..."), |
69 | 600 | _("Sorry, you can't share the root of a Ubuntu One volume"), | 600 | _("Sorry, you can't share the root of a Ubuntu One volume"), |
70 | 601 | "ubuntuone"); | 601 | "ubuntuone"); |
71 | 602 | } else if (!(is_managed || is_udf)) { | 602 | } else if (!(is_managed || is_udf)) { |
72 | 603 | item = nautilus_menu_item_new ("ubuntuone-noshare-unmanaged", | 603 | item = nautilus_menu_item_new ("ubuntuone-noshare-unmanaged", |
74 | 604 | _("Share on Ubuntu One..."), | 604 | _("_Share..."), |
75 | 605 | _("Sorry, you can't share folders not managed by Ubuntu One"), | 605 | _("Sorry, you can't share folders not managed by Ubuntu One"), |
76 | 606 | "ubuntuone"); | 606 | "ubuntuone"); |
77 | 607 | } else { | 607 | } else { |
78 | 608 | item = nautilus_menu_item_new ("ubuntuone-noshare-unmanaged", | 608 | item = nautilus_menu_item_new ("ubuntuone-noshare-unmanaged", |
80 | 609 | _("Share on Ubuntu One..."), | 609 | _("_Share..."), |
81 | 610 | _("Sorry, you can only share folders"), | 610 | _("Sorry, you can only share folders"), |
82 | 611 | "ubuntuone"); | 611 | "ubuntuone"); |
83 | 612 | } | 612 | } |
84 | @@ -620,7 +620,7 @@ | |||
85 | 620 | NautilusMenuItem * item; | 620 | NautilusMenuItem * item; |
86 | 621 | 621 | ||
87 | 622 | item = nautilus_menu_item_new ("ubuntuone-unshare", | 622 | item = nautilus_menu_item_new ("ubuntuone-unshare", |
89 | 623 | _("Stop sharing on Ubuntu One..."), | 623 | _("Stop _Sharing"), |
90 | 624 | _("Stop sharing this folder on Ubuntu One"), | 624 | _("Stop sharing this folder on Ubuntu One"), |
91 | 625 | "ubuntuone"); | 625 | "ubuntuone"); |
92 | 626 | if (is_pending) | 626 | if (is_pending) |
93 | @@ -645,7 +645,7 @@ | |||
94 | 645 | if (strcmp (path, uon->managed) == 0) { | 645 | if (strcmp (path, uon->managed) == 0) { |
95 | 646 | /* the Ubuntu One directory, no UDFs */ | 646 | /* the Ubuntu One directory, no UDFs */ |
96 | 647 | item = nautilus_menu_item_new ("ubuntuone-no-disable-u1", | 647 | item = nautilus_menu_item_new ("ubuntuone-no-disable-u1", |
98 | 648 | _("Stop synchronizing this folder with Ubuntu One"), | 648 | _("Stop Synchronizing This _Folder"), |
99 | 649 | _("Sorry, you can't stop synchronizing ~/Ubuntu One"), | 649 | _("Sorry, you can't stop synchronizing ~/Ubuntu One"), |
100 | 650 | "ubuntuone"); | 650 | "ubuntuone"); |
101 | 651 | g_object_set (item, "sensitive", FALSE, NULL); | 651 | g_object_set (item, "sensitive", FALSE, NULL); |
102 | @@ -653,7 +653,7 @@ | |||
103 | 653 | /* the root of a UDF: disabling possible */ | 653 | /* the root of a UDF: disabling possible */ |
104 | 654 | 654 | ||
105 | 655 | item = nautilus_menu_item_new ("ubuntuone-disable-udf", | 655 | item = nautilus_menu_item_new ("ubuntuone-disable-udf", |
107 | 656 | _("Stop synchronizing this folder..."), | 656 | _("Stop Synchronizing This _Folder"), |
108 | 657 | _("Stop synchronizing this folder with Ubuntu One"), | 657 | _("Stop synchronizing this folder with Ubuntu One"), |
109 | 658 | "ubuntuone"); | 658 | "ubuntuone"); |
110 | 659 | 659 | ||
111 | @@ -665,7 +665,7 @@ | |||
112 | 665 | /* unmanaged */ | 665 | /* unmanaged */ |
113 | 666 | 666 | ||
114 | 667 | item = nautilus_menu_item_new ("ubuntuone-enable-udf", | 667 | item = nautilus_menu_item_new ("ubuntuone-enable-udf", |
116 | 668 | _("Synchronize this folder..."), | 668 | _("Synchronize This _Folder"), |
117 | 669 | _("Start synchronizing this folder with Ubuntu One"), | 669 | _("Start synchronizing this folder with Ubuntu One"), |
118 | 670 | "ubuntuone"); | 670 | "ubuntuone"); |
119 | 671 | 671 | ||
120 | @@ -676,12 +676,12 @@ | |||
121 | 676 | } else { | 676 | } else { |
122 | 677 | if (is_dir) { | 677 | if (is_dir) { |
123 | 678 | item = nautilus_menu_item_new ("ubuntuone-no-disable-u1", | 678 | item = nautilus_menu_item_new ("ubuntuone-no-disable-u1", |
125 | 679 | _("Synchronize this folder..."), | 679 | _("Synchronize This _Folder"), |
126 | 680 | _("Sorry, you can only synchronize folders within your home folder"), | 680 | _("Sorry, you can only synchronize folders within your home folder"), |
127 | 681 | "ubuntuone"); | 681 | "ubuntuone"); |
128 | 682 | } else { | 682 | } else { |
129 | 683 | item = nautilus_menu_item_new ("ubuntuone-no-disable-u1", | 683 | item = nautilus_menu_item_new ("ubuntuone-no-disable-u1", |
131 | 684 | _("Synchronize this folder..."), | 684 | _("Synchronize This _Folder"), |
132 | 685 | _("Sorry, you can only synchronize folders"), | 685 | _("Sorry, you can only synchronize folders"), |
133 | 686 | "ubuntuone"); | 686 | "ubuntuone"); |
134 | 687 | } | 687 | } |
135 | @@ -689,7 +689,7 @@ | |||
136 | 689 | } | 689 | } |
137 | 690 | if (!item) { | 690 | if (!item) { |
138 | 691 | item = nautilus_menu_item_new ("ubuntuone-no-udf-operation-possible", | 691 | item = nautilus_menu_item_new ("ubuntuone-no-udf-operation-possible", |
140 | 692 | _("Synchronize this folder..."), | 692 | _("Synchronize This _Folder"), |
141 | 693 | _("Synchronization not possible for this folder"), | 693 | _("Synchronization not possible for this folder"), |
142 | 694 | "ubuntuone"); | 694 | "ubuntuone"); |
143 | 695 | g_object_set (item, "sensitive", FALSE, NULL); | 695 | g_object_set (item, "sensitive", FALSE, NULL); |
144 | @@ -705,7 +705,7 @@ | |||
145 | 705 | 705 | ||
146 | 706 | if (is_public) { | 706 | if (is_public) { |
147 | 707 | urlitem = nautilus_menu_item_new ("ubuntuone-geturl", | 707 | urlitem = nautilus_menu_item_new ("ubuntuone-geturl", |
149 | 708 | _("Copy Ubuntu One public URL"), | 708 | _("Copy Web _Link"), |
150 | 709 | _("Copy the Ubuntu One public URL for this file to the clipboard."), | 709 | _("Copy the Ubuntu One public URL for this file to the clipboard."), |
151 | 710 | "ubuntuone"); | 710 | "ubuntuone"); |
152 | 711 | if (is_pending) | 711 | if (is_pending) |
153 | @@ -715,8 +715,8 @@ | |||
154 | 715 | G_CALLBACK (ubuntuone_nautilus_copy_public_url), | 715 | G_CALLBACK (ubuntuone_nautilus_copy_public_url), |
155 | 716 | cb_data); | 716 | cb_data); |
156 | 717 | item = nautilus_menu_item_new ("ubuntuone-unpublish", | 717 | item = nautilus_menu_item_new ("ubuntuone-unpublish", |
159 | 718 | _("Stop publishing via Ubuntu One"), | 718 | _("Stop _Publishing"), |
160 | 719 | _("No longer share this file with everyone."), | 719 | _("No longer share this file with everyone via Ubuntu One."), |
161 | 720 | "ubuntuone"); | 720 | "ubuntuone"); |
162 | 721 | if (is_pending) | 721 | if (is_pending) |
163 | 722 | g_object_set (item, "sensitive", FALSE, NULL); | 722 | g_object_set (item, "sensitive", FALSE, NULL); |
164 | @@ -724,8 +724,8 @@ | |||
165 | 724 | cb_data->make_public = FALSE; | 724 | cb_data->make_public = FALSE; |
166 | 725 | } else { | 725 | } else { |
167 | 726 | item = nautilus_menu_item_new ("ubuntuone-publish", | 726 | item = nautilus_menu_item_new ("ubuntuone-publish", |
170 | 727 | _("Publish this file via Ubuntu One"), | 727 | _("_Publish"), |
171 | 728 | _("Make this file available to anyone."), | 728 | _("Make this file available to anyone via Ubuntu One."), |
172 | 729 | "ubuntuone"); | 729 | "ubuntuone"); |
173 | 730 | cb_data->make_public = TRUE; | 730 | cb_data->make_public = TRUE; |
174 | 731 | } | 731 | } |
175 | @@ -735,15 +735,15 @@ | |||
176 | 735 | } | 735 | } |
177 | 736 | if (!urlitem) { | 736 | if (!urlitem) { |
178 | 737 | urlitem = nautilus_menu_item_new ("ubuntuone-geturl", | 737 | urlitem = nautilus_menu_item_new ("ubuntuone-geturl", |
181 | 738 | _("Copy Ubuntu One public URL"), | 738 | _("Copy Web _Link"), |
182 | 739 | _("Sorry, no public URL for this file"), | 739 | _("Sorry, no public URL for this file via Ubuntu One."), |
183 | 740 | "ubuntuone"); | 740 | "ubuntuone"); |
184 | 741 | g_object_set (urlitem, "sensitive", FALSE, NULL); | 741 | g_object_set (urlitem, "sensitive", FALSE, NULL); |
185 | 742 | } | 742 | } |
186 | 743 | if (!item) { | 743 | if (!item) { |
187 | 744 | item = nautilus_menu_item_new ("ubuntuone-publish", | 744 | item = nautilus_menu_item_new ("ubuntuone-publish", |
190 | 745 | _("Publish via Ubuntu One"), | 745 | _("_Publish"), |
191 | 746 | _("Sorry, unable to publish"), | 746 | _("Sorry, unable to publish via Ubuntu One."), |
192 | 747 | "ubuntuone"); | 747 | "ubuntuone"); |
193 | 748 | g_object_set (item, "sensitive", FALSE, NULL); | 748 | g_object_set (item, "sensitive", FALSE, NULL); |
194 | 749 | } | 749 | } |
195 | @@ -757,14 +757,14 @@ | |||
196 | 757 | NautilusMenuItem * item; | 757 | NautilusMenuItem * item; |
197 | 758 | if (show_location()) { | 758 | if (show_location()) { |
198 | 759 | item = nautilus_menu_item_new ("ubuntuone-location-hide", | 759 | item = nautilus_menu_item_new ("ubuntuone-location-hide", |
201 | 760 | _("Hide location bar"), | 760 | _("Hide _Ribbon"), |
202 | 761 | _("Do not show the location bar" | 761 | _("Do not show the Ubuntu One ribbon" |
203 | 762 | " in selected folders"), | 762 | " in selected folders"), |
204 | 763 | "ubuntuone"); | 763 | "ubuntuone"); |
205 | 764 | } else { | 764 | } else { |
206 | 765 | item = nautilus_menu_item_new ("ubuntuone-location-show", | 765 | item = nautilus_menu_item_new ("ubuntuone-location-show", |
209 | 766 | _("Show location bar"), | 766 | _("Show _Ribbon in Some Folders"), |
210 | 767 | _("Show the location bar" | 767 | _("Show the Ubuntu One ribbon" |
211 | 768 | " in selected folders"), | 768 | " in selected folders"), |
212 | 769 | "ubuntuone"); | 769 | "ubuntuone"); |
213 | 770 | } | 770 | } |
214 | 771 | 771 | ||
215 | === modified file 'tests/test_preferences.py' | |||
216 | --- tests/test_preferences.py 2010-08-25 22:37:44 +0000 | |||
217 | +++ tests/test_preferences.py 2010-08-26 18:42:46 +0000 | |||
218 | @@ -166,7 +166,7 @@ | |||
219 | 166 | # check a placeholder for the local machine description is there | 166 | # check a placeholder for the local machine description is there |
220 | 167 | self.assertTrue(('Label', '<LOCAL MACHINE>') in interesting) | 167 | self.assertTrue(('Label', '<LOCAL MACHINE>') in interesting) |
221 | 168 | # check the bw limitation stuff is there | 168 | # check the bw limitation stuff is there |
223 | 169 | self.assertTrue(('CheckButton', '_Limit Bandwidth Usage') | 169 | self.assertTrue(('CheckButton', '_Limit bandwidth') |
224 | 170 | in interesting) | 170 | in interesting) |
225 | 171 | self.assertTrue(('Label', 'Maximum _download speed (KB/s):') | 171 | self.assertTrue(('Label', 'Maximum _download speed (KB/s):') |
226 | 172 | in interesting) | 172 | in interesting) |
199 - _("Hide location bar"), menu_item_ new ("ubuntuone- location- show",
200 - _("Do not show the location bar"
201 + _("Hide ribbon"),
202 + _("Do not show the Ubuntu One ribbon"
203 " in selected folders"),
204 "ubuntuone");
205 } else {
206 item = nautilus_
207 - _("Show location bar"),
208 - _("Show the location bar"
209 + _("Show ribbon (in some folders)"),
210 + _("Show the Ubuntu One ribbon"
211 " in selected folders"),
212 "ubuntuone");
Only one thing, those 'Hide ribbon'/'Show ribbon' should have 'Ribbon'