| 75 PurpleMessageFlags flags, void *data) |
75 PurpleMessageFlags flags, void *data) |
| 76 { |
76 { |
| 77 time_t now = time(NULL) / interval * interval; |
77 time_t now = time(NULL) / interval * interval; |
| 78 time_t then; |
78 time_t then; |
| 79 |
79 |
| 80 if (!g_list_find((GList *)purple_get_conversations(), conv)) |
80 if (!g_list_find(purple_get_conversations(), conv)) |
| 81 return FALSE; |
81 return FALSE; |
| 82 |
82 |
| 83 then = GPOINTER_TO_INT(purple_conversation_get_data( |
83 then = GPOINTER_TO_INT(purple_conversation_get_data( |
| 84 conv, "timestamp-last")); |
84 conv, "timestamp-last")); |
| 85 |
85 |
| 96 timestamp_new_convo(PurpleConversation *conv) |
96 timestamp_new_convo(PurpleConversation *conv) |
| 97 { |
97 { |
| 98 PidginConversation *gtk_conv = PIDGIN_CONVERSATION(conv); |
98 PidginConversation *gtk_conv = PIDGIN_CONVERSATION(conv); |
| 99 GtkTextBuffer *buffer; |
99 GtkTextBuffer *buffer; |
| 100 |
100 |
| 101 if (!g_list_find((GList *)purple_get_conversations(), conv)) |
101 if (!g_list_find(purple_get_conversations(), conv)) |
| 102 return; |
102 return; |
| 103 |
103 |
| 104 buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(gtk_conv->imhtml)); |
104 buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(gtk_conv->imhtml)); |
| 105 gtk_text_buffer_create_tag(buffer, "TIMESTAMP", |
105 gtk_text_buffer_create_tag(buffer, "TIMESTAMP", |
| 106 "foreground", "#888888", "justification", GTK_JUSTIFY_CENTER, |
106 "foreground", "#888888", "justification", GTK_JUSTIFY_CENTER, |