# HG changeset patch # User Richard Laager # Date 1192391079 0 # Node ID b5d51fbb267321f031091126333fde474da68f89 # Parent 725d9a9aaf35d37964fe677581c91de2ca521d2c Use the PURPLE_REQUEST_HINT defines for comparisons. diff -r 725d9a9aaf35 -r b5d51fbb2673 pidgin/gtkrequest.c --- 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"); }