[vlc-commits] [Git][videolan/vlc][master] macosx: prevent text selection in sidebar header labels

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sat May 30 09:28:52 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
70052d03 by Serhii Bykov at 2026-05-30T11:17:11+02:00
macosx: prevent text selection in sidebar header labels

- - - - -


1 changed file:

- modules/gui/macosx/extensions/NSTextField+VLCAdditions.m


Changes:

=====================================
modules/gui/macosx/extensions/NSTextField+VLCAdditions.m
=====================================
@@ -29,12 +29,14 @@
     if (@available(macOS 10.12, *)) {
         NSTextField * const textField = [NSTextField wrappingLabelWithString:stringValue];
         textField.translatesAutoresizingMaskIntoConstraints = NO;
+        textField.selectable = NO;
         return textField;
     }
     NSTextField * const textField = [[NSTextField alloc] initWithFrame:NSZeroRect];
     textField.translatesAutoresizingMaskIntoConstraints = NO;
     textField.stringValue = stringValue;
     textField.editable = NO;
+    textField.selectable = NO;
     textField.bordered = NO;
     textField.drawsBackground = NO;
     textField.lineBreakMode = NSLineBreakByWordWrapping;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/70052d03dea8fbbae599c4f74e3648e52e91ea1d

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/70052d03dea8fbbae599c4f74e3648e52e91ea1d
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list