changeset 21239:b5d51fbb2673

Use the PURPLE_REQUEST_HINT defines for comparisons.
author Richard Laager <rlaager@wiktel.com>
date Sun, 14 Oct 2007 19:44:39 +0000
parents 725d9a9aaf35
children 58b486da43f3 d8990c20cbee
files pidgin/gtkrequest.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkrequest.c	Sun Oct 14 18:43:32 2007 +0000
+++ b/pidgin/gtkrequest.c	Sun Oct 14 19:44:39 2007 +0000
@@ -106,16 +106,16 @@
 	if (convo)
 		return GTK_WINDOW(convo->win->window);
 
-	if (strcmp(ui_hint, "blist")) {
+	if (strcmp(ui_hint, PURPLE_REQUEST_HINT_BLIST)) {
 		GList *ll_toplevels = NULL;
 
 		ll_toplevels = gtk_window_list_toplevels();
 
 		if (!(toplevel = find_toplevel(ll_toplevels, ui_hint))) {
-			if (!strcmp(ui_hint, "register-account"))
+			if (!strcmp(ui_hint, PURPLE_REQUEST_HINT_REGISTER))
 				toplevel = find_toplevel(ll_toplevels, "account");
 			else
-			if (!strcmp(ui_hint, "xfer"))
+			if (!strcmp(ui_hint, PURPLE_REQUEST_HINT_XFER))
 				toplevel = find_toplevel(ll_toplevels, "file transfer");
 		}