Merge lp:~markellmtthw/beat-box/fix-927849 into lp:beat-box

Proposed by Matthew Markell
Status: Merged
Approved by: Victor Martinez
Approved revision: 528
Merged at revision: 528
Proposed branch: lp:~markellmtthw/beat-box/fix-927849
Merge into: lp:beat-box
Diff against target: 43 lines (+7/-1)
2 files modified
src/Views/AlbumView/AlbumIconView.vala (+3/-0)
src/Views/AlbumView/AlbumViewModel.vala (+4/-1)
To merge this branch: bzr merge lp:~markellmtthw/beat-box/fix-927849
Reviewer Review Type Date Requested Status
Victor Martinez (community) Approve
Review via email: mp+92079@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Victor Martinez (victored) wrote :

This works perfectly.

Although it's not used, you also need to update the get_column_type() function in AlbumViewModel.vala.

Also, It would be nice if you added markup to the text, making the album name bigger than the artists name :)

review: Needs Fixing
Revision history for this message
Victor Martinez (victored) wrote :

I forgot to mention that the tooltip doesn't work when either the album or artist names contain an ampersand '&'

Revision history for this message
xapantu (xapantu) wrote :

Did you try to add a .replace("&", "&");?

2012/2/8 Victor Eduardo <email address hidden>

> I forgot to mention that the tooltip doesn't work when either the album or
> artist names contain an ampersand '&'
> --
> https://code.launchpad.net/~markellmtthw/beat-box/fix-927849/+merge/92079
> Your team BeatBox Team is subscribed to branch lp:beat-box.
>

Revision history for this message
Victor Martinez (victored) wrote :

Yes, that's what he needs to do :)

lp:~markellmtthw/beat-box/fix-927849 updated
528. By Matthew Markell

Did a little more work on Album view tooltips. Album names are bolded, ampersand's are converted and I updated the get_column_type() function

Revision history for this message
Victor Martinez (victored) wrote :

Thanks for your work Matthew.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Views/AlbumView/AlbumIconView.vala'
2--- src/Views/AlbumView/AlbumIconView.vala 2012-02-04 00:01:35 +0000
3+++ src/Views/AlbumView/AlbumIconView.vala 2012-02-08 19:54:25 +0000
4@@ -91,6 +91,8 @@
5 icons.margin = 20;
6 add(icons);
7
8+ icons.set_tooltip_column(2);
9+
10 show_all();
11
12 icons.button_release_event.connect(buttonReleaseEvent);
13@@ -99,6 +101,7 @@
14 this.size_allocate.connect(resized);
15 this.focus_out_event.connect(on_focus_out);
16
17+
18 //this.grab_focus ();
19 }
20
21
22=== modified file 'src/Views/AlbumView/AlbumViewModel.vala'
23--- src/Views/AlbumView/AlbumViewModel.vala 2012-02-04 21:57:13 +0000
24+++ src/Views/AlbumView/AlbumViewModel.vala 2012-02-08 19:54:25 +0000
25@@ -71,6 +71,8 @@
26 return typeof(Gdk.Pixbuf);
27 else if(col == 1)
28 return typeof(string);
29+ else if(col == 2)
30+ return typeof(string);
31 else
32 return typeof(Media);
33
34@@ -148,7 +150,8 @@
35 val = TEXT_MARKUP.printf(album.replace("&", "&amp;"), album_artist.replace("&", "&amp;"));
36 }
37 else if(column == 2) {
38- val = s;
39+// val = s;
40+ val = TEXT_MARKUP.printf ("<b>" + s.album.replace("&", "&amp;") + "</b>" , " " + s.album_artist.replace("&", "&amp;"));
41 }
42 else {
43 val = Value(get_column_type(column));

Subscribers

People subscribed via source and target branches