Skip to content

Commit

Permalink
Updated application icon
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinbjornt committed Sep 30, 2023
1 parent fc7ad67 commit 18c410e
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,3 @@ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

The Sloth application icon is copyright (C) [Drífa Thoroddsen](https://drifaliftora.is).
2 changes: 0 additions & 2 deletions resources/Credits.rtf
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

\f0\fs24 \cf0 Created by {\field{\*\fldinst{HYPERLINK "mailto:[email protected]"}}{\fldrslt Sveinbjorn Thordarson}}\
\
Icon by {\field{\*\fldinst{HYPERLINK "https://drifaliftora.is"}}{\fldrslt Dr\'edfa L\'edft\'f3ra}}\
\
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0
{\field{\*\fldinst{HYPERLINK "https://sveinbjorn.org/sloth"}}{\fldrslt \cf0 https://sveinbjorn.org/sloth}}\
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\qc\partightenfactor0
Expand Down
Binary file modified resources/sloth.icns
Binary file not shown.
1 change: 0 additions & 1 deletion source/SlothController.m
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,6 @@ - (NSMutableArray *)filterContent:(NSMutableArray *)unfilteredContent
DLog(@"Adding regex: %@", ps[1]);
}


BOOL hasSearchFilter = ([searchFilters count] > 0);
BOOL hasPrefsFilter = ([prefsFilters count] > 0);
BOOL showAllProcessTypes = !showApplicationsOnly;
Expand Down
5 changes: 2 additions & 3 deletions source/Util/IPUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ + (BOOL)isIPv4AddressString:(NSString *)ipString {
return [ipString isMatchedByRegex:regex];
}

// Monstrous regex from https://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses
+ (BOOL)isIPv6AddressString:(NSString *)ipString {
NSRegularExpression *regex =
[NSRegularExpression regularExpressionWithPattern:
Expand Down Expand Up @@ -129,7 +128,7 @@ + (NSString *)IPv6AddressStringForDNSName:(NSString *)dnsNameString {

#pragma mark -

// Look up port name, e.g. "http" for "80"
// Look up port name, e.g. "http" for "80", "ssh" for "22", etc.
+ (NSString *)portNameForPortNumString:(NSString *)portNumStr {
if ([IPUtils isPortNumberString:portNumStr] == NO) {
return nil;
Expand All @@ -147,7 +146,7 @@ + (NSString *)portNameForPortNumString:(NSString *)portNumStr {
return [NSString stringWithCString:serv->s_name encoding:NSASCIIStringEncoding];
}

// Look up port number for name, e.g. "80" for "http"
// Look up port number for name, e.g. "80" for "http", "22" for "ssh", etc.
+ (NSString *)portNumberForPortNameString:(NSString *)portNameString {
const char *portName = [portNameString cStringUsingEncoding:NSUTF8StringEncoding];
struct servent *serv = getservbyname(portName, NULL);
Expand Down

0 comments on commit 18c410e

Please sign in to comment.