[vlc-devel] commit: macosx: auto expand when we select one of the elements in the preferences view. ( Derk-Jan Hartman )

git version control git at videolan.org
Wed Jun 10 14:51:34 CEST 2009


vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Wed Jun 10 14:49:37 2009 +0200| [dfd5ae96741d63ec29d0b4bf506e4a30b4651b9d] | committer: Derk-Jan Hartman 

macosx: auto expand when we select one of the elements in the preferences view.

This will hopefully help avoid some of the reports where people fail to notice that there is an expand triangle next to what they clicked on.

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

 modules/gui/macosx/prefs.m |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx/prefs.m b/modules/gui/macosx/prefs.m
index 2eb1b90..e69dfda 100644
--- a/modules/gui/macosx/prefs.m
+++ b/modules/gui/macosx/prefs.m
@@ -261,6 +261,7 @@ static VLCPrefs *_o_sharedMainInstance = nil;
 - (void)outlineViewSelectionDidChange:(NSNotification *)o_notification
 {
     [[o_tree itemAtRow:[o_tree selectedRow]] showView: o_prefs_view];
+    [o_tree expandItem:[o_tree itemAtRow:[o_tree selectedRow]]];
 }
 
 @end




More information about the vlc-devel mailing list