From: Pierre d'Herbemont Date: Sun, 6 Jul 2008 20:53:24 +0000 (+0200) Subject: macosx: Use font from the Nib in the playlist. X-Git-Tag: 0.9.0-test2~154 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=8dbce44cb57f01151e696c3a0dae58c7ac1d880d;p=vlc macosx: Use font from the Nib in the playlist. --- diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m index 8b02ac26b7..90d75e1220 100644 --- a/modules/gui/macosx/playlist.m +++ b/modules/gui/macosx/playlist.m @@ -297,8 +297,7 @@ } free( psz_artist ); } - - return( o_value ); + return o_value; } @end @@ -1289,11 +1288,11 @@ [item pointerValue] checkItemExistence: YES] || [o_playing_item isEqual: item] ) { - [cell setFont: [NSFont boldSystemFontOfSize: 0]]; + [cell setFont: [[NSFontManager sharedFontManager] convertFont:[cell font] toHaveTrait:NSBoldFontMask]]; } else { - [cell setFont: [NSFont systemFontOfSize: 0]]; + [cell setFont: [[NSFontManager sharedFontManager] convertFont:[cell font] toNotHaveTrait:NSBoldFontMask]]; } vlc_object_release( p_playlist ); }