[vlc-commits] macosx: improve playlist table column resizing behaviour
David Fuhrmann
git at videolan.org
Sun Aug 19 18:09:47 CEST 2012
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Sun Aug 19 17:27:08 2012 +0200| [8af1d49fad9f0050cac39a854a19c217be3a3697] | committer: David Fuhrmann
macosx: improve playlist table column resizing behaviour
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8af1d49fad9f0050cac39a854a19c217be3a3697
---
extras/package/macosx/Resources/English.lproj/MainMenu.xib | 10 +++++-----
modules/gui/macosx/playlist.m | 7 ++-----
2 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/extras/package/macosx/Resources/English.lproj/MainMenu.xib b/extras/package/macosx/Resources/English.lproj/MainMenu.xib
index bcda8fc..672f9e8 100644
--- a/extras/package/macosx/Resources/English.lproj/MainMenu.xib
+++ b/extras/package/macosx/Resources/English.lproj/MainMenu.xib
@@ -21,15 +21,15 @@
</object>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
- <integer value="4948"/>
<integer value="915"/>
+ <integer value="5160"/>
+ <integer value="2730"/>
+ <integer value="21"/>
<integer value="2770"/>
+ <integer value="4948"/>
<integer value="4845"/>
<integer value="4722"/>
- <integer value="5160"/>
<integer value="4850"/>
- <integer value="4372"/>
- <integer value="2730"/>
<integer value="1617"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
@@ -451,7 +451,7 @@
<reference key="NSDelegate"/>
<reference key="NSDataSource"/>
<int key="NSGridStyleMask">1</int>
- <int key="NSColumnAutoresizingStyle">4</int>
+ <int key="NSColumnAutoresizingStyle">3</int>
<int key="NSDraggingSourceMaskForLocal">15</int>
<int key="NSDraggingSourceMaskForNonLocal">0</int>
<bool key="NSAllowsTypeSelect">YES</bool>
diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 9f7ddf2..cc15f2e 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -1500,13 +1500,10 @@
if ([o_column isEqualToString: TRACKNUM_COLUMN])
{
- [o_work_tc setMaxWidth: 20.];
+ [o_work_tc setWidth: 20.];
+ [o_work_tc setResizingMask: NSTableColumnNoResizing];
[[o_work_tc headerCell] setStringValue: @"#"];
}
- else if ([o_column isEqualToString: TITLE_COLUMN])
- {
- [o_work_tc setResizingMask: NSTableColumnAutoresizingMask | NSTableColumnUserResizingMask];
- }
[o_outline_view addTableColumn: o_work_tc];
[o_work_tc release];
More information about the vlc-commits
mailing list