[vlc-commits] macosx: Set correct state/highlight for badge button

Marvin Scholz git at videolan.org
Wed Aug 26 16:28:27 CEST 2020


vlc/vlc-3.0 | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sat Aug 18 21:09:39 2018 +0200| [13932527d3a2312c93264cd5acf883eca90a63fc] | committer: Marvin Scholz

macosx: Set correct state/highlight for badge button

(cherry picked from commit cae48baeb1e91f1c5fa4442ec807b2bc5f70237e)
Signed-off-by: Marvin Scholz <epirat07 at gmail.com>

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

 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