[vlc-commits] macosx: Set correct state/highlight for badge button
Marvin Scholz
git at videolan.org
Sat Aug 18 21:09:56 CEST 2018
vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sat Aug 18 21:09:39 2018 +0200| [cae48baeb1e91f1c5fa4442ec807b2bc5f70237e] | committer: Marvin Scholz
macosx: Set correct state/highlight for badge button
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cae48baeb1e91f1c5fa4442ec807b2bc5f70237e
---
modules/gui/macosx/VLCSourceListBadgeButton.m | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/modules/gui/macosx/VLCSourceListBadgeButton.m b/modules/gui/macosx/VLCSourceListBadgeButton.m
index ec14deef04..edc6a2cc14 100644
--- a/modules/gui/macosx/VLCSourceListBadgeButton.m
+++ b/modules/gui/macosx/VLCSourceListBadgeButton.m
@@ -33,6 +33,17 @@
return nil;
}
+- (instancetype)initWithCoder:(NSCoder *)coder
+{
+ self = [super initWithCoder:coder];
+ if (self) {
+ [(NSButtonCell*)[self cell] setShowsStateBy:0];
+ [(NSButtonCell*)[self cell] setHighlightsBy:0];
+ }
+
+ return self;
+}
+
/* Our badges show integer values so make it easier to set those by setting
* the title depending on the integer value.
*/
More information about the vlc-commits
mailing list