[vlc-devel] commit: macosx: Use font from the Nib in the playlist. (Pierre d'Herbemont )

git version control git at videolan.org
Sun Jul 6 22:56:27 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sun Jul  6 22:53:24 2008 +0200| [8dbce44cb57f01151e696c3a0dae58c7ac1d880d]

macosx: Use font from the Nib in the playlist.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8dbce44cb57f01151e696c3a0dae58c7ac1d880d
---

 modules/gui/macosx/playlist.m |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 8b02ac2..90d75e1 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 );
 }




More information about the vlc-devel mailing list