| 30 |
30 |
| 31 static void |
31 static void |
| 32 conv_placement_by_number(GaimGtkConversation *conv) |
32 conv_placement_by_number(GaimGtkConversation *conv) |
| 33 { |
33 { |
| 34 GaimGtkWindow *win = NULL; |
34 GaimGtkWindow *win = NULL; |
| |
35 GList *wins = NULL; |
| 35 |
36 |
| 36 if (gaim_prefs_get_bool("/plugins/gtk/extplacement/placement_number_separate")) |
37 if (gaim_prefs_get_bool("/plugins/gtk/extplacement/placement_number_separate")) |
| 37 win = gaim_gtk_conv_window_last_with_type(gaim_conversation_get_type(conv->active_conv)); |
38 win = gaim_gtk_conv_window_last_with_type(gaim_conversation_get_type(conv->active_conv)); |
| 38 else |
39 else if ((wins = gaim_gtk_conv_windows_get_list()) != NULL) |
| 39 win = g_list_last(gaim_gtk_conv_windows_get_list())->data; |
40 win = g_list_last(wins)->data; |
| 40 |
41 |
| 41 if (win == NULL) { |
42 if (win == NULL) { |
| 42 win = gaim_gtk_conv_window_new(); |
43 win = gaim_gtk_conv_window_new(); |
| 43 |
44 |
| 44 gaim_gtk_conv_window_add_gtkconv(win, conv); |
45 gaim_gtk_conv_window_add_gtkconv(win, conv); |