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
=== modified file 'src/Views/AlbumView/AlbumIconView.vala'
--- src/Views/AlbumView/AlbumIconView.vala 2012-02-04 00:01:35 +0000
+++ src/Views/AlbumView/AlbumIconView.vala 2012-02-08 19:54:25 +0000
@@ -91,6 +91,8 @@
91 icons.margin = 20;91 icons.margin = 20;
92 add(icons);92 add(icons);
93 93
94 icons.set_tooltip_column(2);
95
94 show_all();96 show_all();
95 97
96 icons.button_release_event.connect(buttonReleaseEvent);98 icons.button_release_event.connect(buttonReleaseEvent);
@@ -99,6 +101,7 @@
99 this.size_allocate.connect(resized);101 this.size_allocate.connect(resized);
100 this.focus_out_event.connect(on_focus_out);102 this.focus_out_event.connect(on_focus_out);
101 103
104
102 //this.grab_focus ();105 //this.grab_focus ();
103 }106 }
104 107
105108
=== modified file 'src/Views/AlbumView/AlbumViewModel.vala'
--- src/Views/AlbumView/AlbumViewModel.vala 2012-02-04 21:57:13 +0000
+++ src/Views/AlbumView/AlbumViewModel.vala 2012-02-08 19:54:25 +0000
@@ -71,6 +71,8 @@
71 return typeof(Gdk.Pixbuf);71 return typeof(Gdk.Pixbuf);
72 else if(col == 1)72 else if(col == 1)
73 return typeof(string);73 return typeof(string);
74 else if(col == 2)
75 return typeof(string);
74 else76 else
75 return typeof(Media);77 return typeof(Media);
76 78
@@ -148,7 +150,8 @@
148 val = TEXT_MARKUP.printf(album.replace("&", "&amp;"), album_artist.replace("&", "&amp;"));150 val = TEXT_MARKUP.printf(album.replace("&", "&amp;"), album_artist.replace("&", "&amp;"));
149 }151 }
150 else if(column == 2) {152 else if(column == 2) {
151 val = s;153// val = s;
154 val = TEXT_MARKUP.printf ("<b>" + s.album.replace("&", "&amp;") + "</b>" , " " + s.album_artist.replace("&", "&amp;"));
152 }155 }
153 else {156 else {
154 val = Value(get_column_type(column));157 val = Value(get_column_type(column));

Subscribers

People subscribed via source and target branches