summaryrefslogtreecommitdiff
path: root/src/fe-common/core/fe-windows.c
diff options
context:
space:
mode:
authorDavid Hill <dhill@conformal.com>2014-06-10 12:06:19 -0400
committerDavid Hill <dhill@conformal.com>2014-06-10 12:06:19 -0400
commit0d4f13d20f304927277ad327c714481bc97de48f (patch)
tree0cea195e9fae20e3e10d48c5c829b0e894bdd492 /src/fe-common/core/fe-windows.c
parent5ca9287182092530dc206fa1af13fbe19cc357d1 (diff)
downloadirssi-0d4f13d20f304927277ad327c714481bc97de48f.zip
Replace deprecated g_str[n]casecmp with g_ascii_str[n]cmp.
Diffstat (limited to 'src/fe-common/core/fe-windows.c')
-rw-r--r--src/fe-common/core/fe-windows.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/fe-common/core/fe-windows.c b/src/fe-common/core/fe-windows.c
index 30df327b..aa5ea397 100644
--- a/src/fe-common/core/fe-windows.c
+++ b/src/fe-common/core/fe-windows.c
@@ -311,8 +311,8 @@ WINDOW_REC *window_find_closest(void *server, const char *name, int level)
generic msgs window.
And check for prefixed !channel name --Borys */
- if (g_strcasecmp(name, item->visible_name) == 0 ||
- g_strcasecmp(name, (char *) window_item_get_target((WI_ITEM_REC *) item)) == 0)
+ if (g_ascii_strcasecmp(name, item->visible_name) == 0 ||
+ g_ascii_strcasecmp(name, (char *) window_item_get_target((WI_ITEM_REC *) item)) == 0)
return namewindow;
}
}
@@ -362,7 +362,8 @@ WINDOW_REC *window_find_name(const char *name)
for (tmp = windows; tmp != NULL; tmp = tmp->next) {
WINDOW_REC *rec = tmp->data;
- if (rec->name != NULL && g_strcasecmp(rec->name, name) == 0)
+ if (rec->name != NULL &&
+ g_ascii_strcasecmp(rec->name, name) == 0)
return rec;
}
@@ -510,8 +511,8 @@ WINDOW_BIND_REC *window_bind_find(WINDOW_REC *window, const char *servertag,
for (tmp = window->bound_items; tmp != NULL; tmp = tmp->next) {
WINDOW_BIND_REC *rec = tmp->data;
- if (g_strcasecmp(rec->name, name) == 0 &&
- g_strcasecmp(rec->servertag, servertag) == 0)
+ if (g_ascii_strcasecmp(rec->name, name) == 0 &&
+ g_ascii_strcasecmp(rec->servertag, servertag) == 0)
return rec;
}
@@ -543,7 +544,7 @@ static void sig_server_connected(SERVER_REC *server)
WINDOW_REC *rec = tmp->data;
if ((rec->servertag == NULL ||
- g_strcasecmp(rec->servertag, server->tag) == 0) &&
+ g_ascii_strcasecmp(rec->servertag, server->tag) == 0) &&
(rec->active_server == NULL ||
(rec == active_win && rec->items == NULL)))
window_change_server(rec, server);