[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
Sat Jun 13 16:42:35 CEST 2009


vlc | branch: 1.0-bugfix | Derk-Jan Hartman <hartman at videolan.org> | Wed Jun 10 14:49:37 2009 +0200| [bb1326840805c99ab9ca59bb302f1b132f46c645] | 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.
(cherry picked from commit dfd5ae96741d63ec29d0b4bf506e4a30b4651b9d)

Signed-off-by: Derk-Jan Hartman <hartman at videolan.org>

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

 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 cc52e44..d5e59d6 100644
--- a/modules/gui/macosx/prefs.m
+++ b/modules/gui/macosx/prefs.m
@@ -259,6 +259,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