[vlc-commits] [Git][videolan/vlc][master] 2 commits: macosx: Extract subscrollview setup from init into separate method
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue May 9 10:36:19 UTC 2023
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
7cd1107b by Claudio Cambra at 2023-05-09T10:08:58+00:00
macosx: Extract subscrollview setup from init into separate method
Signed-off-by: Claudio Cambra <developer at claudiocambra.com>
- - - - -
f38dc881 by Claudio Cambra at 2023-05-09T10:08:58+00:00
macosx: Implement awakeFromNib in VLCSubScrollView
Signed-off-by: Claudio Cambra <developer at claudiocambra.com>
- - - - -
1 changed file:
- modules/gui/macosx/views/VLCSubScrollView.m
Changes:
=====================================
modules/gui/macosx/views/VLCSubScrollView.m
=====================================
@@ -30,14 +30,24 @@
self = [super init];
if(self) {
- _scrollParentX = NO;
- _scrollParentY = NO;
- _scrollSelf = YES;
+ [self setup];
}
return self;
}
+- (void)awakeFromNib
+{
+ [self setup];
+}
+
+- (void)setup
+{
+ _scrollParentX = NO;
+ _scrollParentY = NO;
+ _scrollSelf = YES;
+}
+
- (void)scrollWheel:(NSEvent *)event
{
if (!_scrollSelf) {
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/d7e841bc39b370276f256962fae89d5766f53b4e...f38dc88172f28e5abc2b9d773b5e66a7aee587b5
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/d7e841bc39b370276f256962fae89d5766f53b4e...f38dc88172f28e5abc2b9d773b5e66a7aee587b5
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list