| 2483 /* if request callback issues another request, it should be attached to the |
2483 /* if request callback issues another request, it should be attached to the |
| 2484 * primary request parent */ |
2484 * primary request parent */ |
| 2485 static void |
2485 static void |
| 2486 pidgin_window_detach_children(GtkWindow* win) |
2486 pidgin_window_detach_children(GtkWindow* win) |
| 2487 { |
2487 { |
| 2488 GList *it; |
2488 GList *it, *l; |
| 2489 GtkWindow *par; |
2489 GtkWindow *par; |
| 2490 |
2490 |
| 2491 g_return_if_fail(win != NULL); |
2491 g_return_if_fail(win != NULL); |
| 2492 |
2492 |
| 2493 par = gtk_window_get_transient_for(win); |
2493 par = gtk_window_get_transient_for(win); |
| 2494 it = gtk_window_list_toplevels(); |
2494 l = it = gtk_window_list_toplevels(); |
| 2495 for (it = g_list_first(it); it != NULL; it = g_list_next(it)) { |
2495 for (it = g_list_first(it); it != NULL; it = g_list_next(it)) { |
| 2496 GtkWindow *child = GTK_WINDOW(it->data); |
2496 GtkWindow *child = GTK_WINDOW(it->data); |
| 2497 if (gtk_window_get_transient_for(child) != win) |
2497 if (gtk_window_get_transient_for(child) != win) |
| 2498 continue; |
2498 continue; |
| 2499 if (gtk_window_get_destroy_with_parent(child)) { |
2499 if (gtk_window_get_destroy_with_parent(child)) { |