grim/pidgin
Clone
Summary
Browse
Changes
Graph
Use purple_strequal instead of strcmp
trac-17174
2017-12-10, Daniel Kamil Kozar
11ab937b64b9
Parents
0839fbcfb9b4
Children
894f2ac013de
931e39789506
Use purple_strequal instead of strcmp
1 files changed, 2 insertions(+), 2 deletions(-)
+2
-2
pidgin/gtkdocklet-gtk.c
--- a/pidgin/gtkdocklet-gtk.c Wed Nov 29 21:13:54 2017 +0100
+++ b/pidgin/gtkdocklet-gtk.c Sun Dec 10 20:34:19 2017 +0100
@@ -160,11 +160,11 @@
break;
}
- if (connecting && strcmp(current_icon_name, PIDGIN_STOCK_TRAY_CONNECT) != 0) {
+ if (connecting && !purple_strequal(current_icon_name, PIDGIN_STOCK_TRAY_CONNECT)) {
icon_name = PIDGIN_STOCK_TRAY_CONNECT;
}
- if (pending && strcmp(current_icon_name, PIDGIN_STOCK_TRAY_PENDING) != 0) {
+ if (pending && !purple_strequal(current_icon_name, PIDGIN_STOCK_TRAY_PENDING)) {
icon_name = PIDGIN_STOCK_TRAY_PENDING;
}