Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
[global] move all xm to x - we don't need c++ at all
Browse files Browse the repository at this point in the history
  • Loading branch information
kirb committed Aug 19, 2016
1 parent 93f6af5 commit d9a5bdc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,22 @@
%end

%new - (void)_typeStatus_init {
HBLogDebug(@"a");
self.containerView = [[UIView alloc] init];
self.containerView.translatesAutoresizingMaskIntoConstraints = NO;
[self addSubview:self.containerView];
HBLogDebug(@"a");

// these UIStatusBarItems leak, but there’s not much we can do about that
self.iconItemView = [[%c(HBTSStatusBarIconItemView) alloc] initWithItem:[[%c(UIStatusBarItem) alloc] init] data:nil actions:kNilOptions style:self.foregroundStyle];
self.iconItemView.translatesAutoresizingMaskIntoConstraints = NO;
[self.containerView addSubview:self.iconItemView];
HBLogDebug(@"a");

self.contentItemView = [[%c(HBTSStatusBarContentItemView) alloc] initWithItem:[[%c(UIStatusBarItem) alloc] init] data:nil actions:kNilOptions style:self.foregroundStyle];
self.contentItemView.translatesAutoresizingMaskIntoConstraints = NO;
[self.containerView addSubview:self.contentItemView];
HBLogDebug(@"a");
}

%new - (void)_typeStatus_setUpLayout {
Expand Down
2 changes: 1 addition & 1 deletion client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ include $(THEOS)/makefiles/common.mk

TWEAK_NAME = TypeStatusClient

TypeStatusClient_FILES = $(wildcard *.x) $(wildcard *.xm) $(wildcard *.m) ../global/HBTSPreferences.m
TypeStatusClient_FILES = $(wildcard *.x) $(wildcard *.m) ../global/HBTSPreferences.m
TypeStatusClient_FRAMEWORKS = UIKit CoreGraphics
TypeStatusClient_EXTRA_FRAMEWORKS = Cephei
TypeStatusClient_CFLAGS = -I../global -include ../global/Global.h -fobjc-arc
Expand Down
2 changes: 1 addition & 1 deletion messages/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include $(THEOS)/makefiles/common.mk

TWEAK_NAME = TypeStatusMessages
TypeStatusMessages_FILES = $(wildcard *.xm) $(wildcard *.m) ../global/HBTSConversationPreferences.x
TypeStatusMessages_FILES = $(wildcard *.m) ../global/HBTSConversationPreferences.x
TypeStatusMessages_FRAMEWORKS = UIKit
TypeStatusMessages_PRIVATE_FRAMEWORKS = ChatKit
TypeStatusMessages_EXTRA_FRAMEWORKS = Cephei
Expand Down

0 comments on commit d9a5bdc

Please sign in to comment.