pidgin/plugins/notify.c

changeset 38358
30ba44276e74
parent 38240
0552f69f1996
parent 38258
9a6551eba09c
child 39173
7adf95ad7b4a
--- a/pidgin/plugins/notify.c	Mon Jun 12 01:00:04 2017 +0000
+++ b/pidgin/plugins/notify.c	Mon Jun 12 17:48:37 2017 -0300
@@ -614,7 +614,7 @@
 
 	purple_prefs_set_bool(pref, on);
 
-	if (!strcmp(data, "method_string")) {
+	if (purple_strequal(data, "method_string")) {
 		GtkWidget *entry = g_object_get_data(G_OBJECT(widget), "title-entry");
 		gtk_widget_set_sensitive(entry, on);
 
@@ -645,7 +645,7 @@
 	if (data == NULL)
 		return FALSE;
 
-	if (!strcmp(data, "method_string")) {
+	if (purple_strequal(data, "method_string")) {
 		purple_prefs_set_string("/plugins/gtk/X11/notify/title_string",
 		                      gtk_entry_get_text(GTK_ENTRY(widget)));
 	}

mercurial