plugins/history.c

changeset 4359
cf899ee07d1d
parent 4235
216938806583
child 5114
b9121ae509aa
equal deleted inserted replaced
4358:a6fc799d5c40 4359:cf899ee07d1d
17 17
18 GModule *handle; 18 GModule *handle;
19 19
20 void historize (char *name, void *data) 20 void historize (char *name, void *data)
21 { 21 {
22 struct conversation *c = find_conversation(name); 22 struct gaim_conversation *c = gaim_find_conversation(name);
23 struct gaim_gtk_conversation *gtkconv;
23 struct stat st; 24 struct stat st;
24 FILE *fd; 25 FILE *fd;
25 char *userdir = g_strdup(gaim_user_dir()); 26 char *userdir = g_strdup(gaim_user_dir());
26 char *logfile = g_strdup_printf("%s.log", normalize(name)); 27 char *logfile = g_strdup_printf("%s.log", normalize(name));
27 char *path = g_build_filename(userdir, "logs", logfile, NULL); 28 char *path = g_build_filename(userdir, "logs", logfile, NULL);
50 if (*tmp) tmp++; 51 if (*tmp) tmp++;
51 52
52 if(*tmp == '<') 53 if(*tmp == '<')
53 options |= GTK_IMHTML_NO_NEWLINE; 54 options |= GTK_IMHTML_NO_NEWLINE;
54 55
55 gtk_imhtml_append_text(GTK_IMHTML(c->text), tmp, strlen(tmp), options); 56 gtkconv = GAIM_GTK_CONVERSATION(c);
57
58 gtk_imhtml_append_text(GTK_IMHTML(gtkconv->imhtml), tmp, strlen(tmp), options);
56 59
57 g_free(userdir); 60 g_free(userdir);
58 g_free(logfile); 61 g_free(logfile);
59 g_free(path); 62 g_free(path);
60 } 63 }

mercurial