[vlc-devel] commit: macosx: improved font selection in the simple prefs by using the 10 .5 API ( Felix Paul Kühne )

git version control git at videolan.org
Sat Feb 21 00:54:25 CET 2009


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Feb 21 00:50:42 2009 +0100| [de50f7f2d5bce022db38bc7aa21feea61ae4b655] | committer: Felix Paul Kühne 

macosx: improved font selection in the simple prefs by using the 10.5 API

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

 modules/gui/macosx/simple_prefs.m |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/modules/gui/macosx/simple_prefs.m b/modules/gui/macosx/simple_prefs.m
index 81dc192..00011b4 100644
--- a/modules/gui/macosx/simple_prefs.m
+++ b/modules/gui/macosx/simple_prefs.m
@@ -1059,11 +1059,6 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
             [o_video_snap_folder_fld setStringValue: [o_selectFolderPanel filename]];
             b_videoSettingChanged = YES;
         }
-        else if( contextInfo == o_osd_font_btn )
-        {
-            [o_osd_font_fld setStringValue: [o_selectFolderPanel filename]];
-            b_osdSettingChanged = YES;
-        }
     }
 
     [o_selectFolderPanel release];
@@ -1095,8 +1090,7 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
         NSFont * font = [NSFont fontWithDescriptor:[fd fontDescriptorWithFamily:fontFamilyName] textTransform:nil];
         [[NSFontManager sharedFontManager] setSelectedFont:font isMultiple:NO];
     }
-    [[NSFontManager sharedFontManager] setDelegate: self];
-    [o_sprefs_win makeFirstResponder: o_sprefs_win];
+    [[NSFontManager sharedFontManager] setTarget: self];
     [[NSFontPanel sharedFontPanel] orderFront:self];
 }
 




More information about the vlc-devel mailing list