pidgin/gtkrequest.c

changeset 21276
ddd50b6a3ad1
parent 21229
aeb6f350b7d5
child 21348
9da44d1a1870
equal deleted inserted replaced
21229:aeb6f350b7d5 21276:ddd50b6a3ad1
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, PURPLE_REQUEST_HINT_BLIST)) { 109 if (strcmp(ui_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, PURPLE_REQUEST_HINT_REGISTER)) 115 if (!strcmp(ui_hint, "register-account"))
116 toplevel = find_toplevel(ll_toplevels, "account"); 116 toplevel = find_toplevel(ll_toplevels, "account");
117 else 117 else
118 if (!strcmp(ui_hint, PURPLE_REQUEST_HINT_XFER)) 118 if (!strcmp(ui_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