| 5769 gtkconv->active_conv = conv; |
5769 gtkconv->active_conv = conv; |
| 5770 gtkconv->convs = g_list_prepend(gtkconv->convs, conv); |
5770 gtkconv->convs = g_list_prepend(gtkconv->convs, conv); |
| 5771 gtkconv->send_history = g_list_append(NULL, NULL); |
5771 gtkconv->send_history = g_list_append(NULL, NULL); |
| 5772 |
5772 |
| 5773 /* Setup some initial variables. */ |
5773 /* Setup some initial variables. */ |
| 5774 #if !GTK_CHECK_VERSION(2,12,0) |
|
| 5775 gtkconv->tooltips = gtk_tooltips_new(); |
|
| 5776 #endif |
|
| 5777 gtkconv->unseen_state = PIDGIN_UNSEEN_NONE; |
5774 gtkconv->unseen_state = PIDGIN_UNSEEN_NONE; |
| 5778 gtkconv->unseen_count = 0; |
5775 gtkconv->unseen_count = 0; |
| 5779 theme_name = purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/theme"); |
5776 theme_name = purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/theme"); |
| 5780 if (theme_name && *theme_name) |
5777 if (theme_name && *theme_name) |
| 5781 theme = purple_theme_manager_find_theme(theme_name, "conversation"); |
5778 theme = purple_theme_manager_find_theme(theme_name, "conversation"); |
| 5989 g_free(gtkconv->u.im); |
5986 g_free(gtkconv->u.im); |
| 5990 } else if (purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_CHAT) { |
5987 } else if (purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_CHAT) { |
| 5991 purple_signals_disconnect_by_handle(gtkconv->u.chat); |
5988 purple_signals_disconnect_by_handle(gtkconv->u.chat); |
| 5992 g_free(gtkconv->u.chat); |
5989 g_free(gtkconv->u.chat); |
| 5993 } |
5990 } |
| 5994 |
|
| 5995 #if !GTK_CHECK_VERSION(2,12,0) |
|
| 5996 gtk_object_sink(GTK_OBJECT(gtkconv->tooltips)); |
|
| 5997 #endif |
|
| 5998 |
5991 |
| 5999 gtkconv->send_history = g_list_first(gtkconv->send_history); |
5992 gtkconv->send_history = g_list_first(gtkconv->send_history); |
| 6000 g_list_foreach(gtkconv->send_history, (GFunc)g_free, NULL); |
5993 g_list_foreach(gtkconv->send_history, (GFunc)g_free, NULL); |
| 6001 g_list_free(gtkconv->send_history); |
5994 g_list_free(gtkconv->send_history); |
| 6002 |
5995 |