pidgin/gtkrequest.c

branch
next.minor
changeset 21229
aeb6f350b7d5
parent 21220
3bb27fe7d046
child 21233
e75de8db4f2b
child 21276
ddd50b6a3ad1
equal deleted inserted replaced
21227:8887817a113a 21229:aeb6f350b7d5
104 PidginBuddyList *blist = NULL; 104 PidginBuddyList *blist = NULL;
105 105
106 if (convo) 106 if (convo)
107 return GTK_WINDOW(convo->win->window); 107 return GTK_WINDOW(convo->win->window);
108 108
109 if (strcmp(ui_hint, "blist")) { 109 if (strcmp(ui_hint, PURPLE_REQUEST_HINT_BLIST)) {
110 GList *ll_toplevels = NULL; 110 GList *ll_toplevels = NULL;
111 111
112 ll_toplevels = gtk_window_list_toplevels(); 112 ll_toplevels = gtk_window_list_toplevels();
113 113
114 if (!(toplevel = find_toplevel(ll_toplevels, ui_hint))) { 114 if (!(toplevel = find_toplevel(ll_toplevels, ui_hint))) {
115 if (!strcmp(ui_hint, "register-account")) 115 if (!strcmp(ui_hint, PURPLE_REQUEST_HINT_REGISTER))
116 toplevel = find_toplevel(ll_toplevels, "account"); 116 toplevel = find_toplevel(ll_toplevels, "account");
117 else 117 else
118 if (!strcmp(ui_hint, "xfer")) 118 if (!strcmp(ui_hint, PURPLE_REQUEST_HINT_XFER))
119 toplevel = find_toplevel(ll_toplevels, "file transfer"); 119 toplevel = find_toplevel(ll_toplevels, "file transfer");
120 } 120 }
121 121
122 g_list_free(ll_toplevels); 122 g_list_free(ll_toplevels);
123 } 123 }

mercurial