Mercurial > pidgin.yaz
comparison src/gtklog.c @ 8898:de87e510ff9a
[gaim-migrate @ 9667]
This makes the history plugin work in chats and not just conversations.
To do this I had to change some functions in log.c to pass around the
GaimLogType (GAIM_LOG_IM, GAIM_LOG_CHAT, or GAIM_LOG_SYSTEM). I hope
that's not a problem...
Here's how I see it:
When creating a new GaimLog you need 3 things, the type, your account
and the name of the other person/chat.
It only makes sense that you would need those same 3 things to find a
log. Or to calculate log size.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 07 May 2004 02:30:02 +0000 |
parents | 599d6ac9bbfe |
children | 230cf4032e3d |
comparison
equal
deleted
inserted
replaced
8897:8ffd1679df93 | 8898:de87e510ff9a |
---|---|
250 gtk_window_present(GTK_WINDOW(lv->window)); | 250 gtk_window_present(GTK_WINDOW(lv->window)); |
251 return; | 251 return; |
252 } | 252 } |
253 | 253 |
254 lv = g_new0(GaimGtkLogViewer, 1); | 254 lv = g_new0(GaimGtkLogViewer, 1); |
255 lv->logs = logs = gaim_log_get_logs(screenname, account); | 255 lv->logs = logs = gaim_log_get_logs(GAIM_LOG_IM, screenname, account); |
256 g_hash_table_insert(log_viewers, ht, lv); | 256 g_hash_table_insert(log_viewers, ht, lv); |
257 | 257 |
258 /* Window ***********/ | 258 /* Window ***********/ |
259 lv->window = gtk_dialog_new_with_buttons(screenname, NULL, 0, | 259 lv->window = gtk_dialog_new_with_buttons(screenname, NULL, 0, |
260 GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL); | 260 GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL); |