From 0125e33720b9616bdd3a69da18b6b155b17ce4dd Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 17 Mar 2018 23:42:54 -0400 Subject: [PATCH] Made the likewise changes on Unix. --- unix/fontbutton.c | 6 ++++++ unix/text.c | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/unix/fontbutton.c b/unix/fontbutton.c index b19cd310..d239952b 100644 --- a/unix/fontbutton.c +++ b/unix/fontbutton.c @@ -67,3 +67,9 @@ uiFontButton *uiNewFontButton(void) return b; } + +void uiFreeFontButtonFont(uiFontDescriptor *desc) +{ + // TODO ensure this is synchronized with fontmatch.c + uiFreeText((char *) (desc->Family)); +} diff --git a/unix/text.c b/unix/text.c index ad92738d..9a2a9dc0 100644 --- a/unix/text.c +++ b/unix/text.c @@ -10,3 +10,8 @@ void uiFreeText(char *t) { g_free(t); } + +int uiprivStricmp(const char *a, const char *b) +{ + return strcasecmp(a, b); +}