Mercurial > pidgin
comparison plugins/history.c @ 7107:9220c7490cd1
[gaim-migrate @ 7672]
This is a big one: normalize() -> gaim_normalize, linkify_text() ->
gaim_markup_linkify(), gaim_get_size_string() -> gaim_str_size_to_units(),
and moved clean_pid() to main.c.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 01 Oct 2003 06:17:28 +0000 |
parents | 083d1e4a9c78 |
children | bdf0e5f71124 |
comparison
equal
deleted
inserted
replaced
7106:db6bd3e794d8 | 7107:9220c7490cd1 |
---|---|
22 GaimGtkConversation *gtkconv; | 22 GaimGtkConversation *gtkconv; |
23 const char *name = gaim_conversation_get_name(c); | 23 const char *name = gaim_conversation_get_name(c); |
24 struct stat st; | 24 struct stat st; |
25 FILE *fd; | 25 FILE *fd; |
26 char *userdir = g_strdup(gaim_user_dir()); | 26 char *userdir = g_strdup(gaim_user_dir()); |
27 char *logfile = g_strdup_printf("%s.log", normalize(name)); | 27 char *logfile = g_strdup_printf("%s.log", gaim_normalize(name)); |
28 char *path = g_build_filename(userdir, "logs", logfile, NULL); | 28 char *path = g_build_filename(userdir, "logs", logfile, NULL); |
29 char buf[HISTORY_SIZE+1]; | 29 char buf[HISTORY_SIZE+1]; |
30 char *tmp, *tmp2; | 30 char *tmp, *tmp2; |
31 int size; | 31 int size; |
32 GtkIMHtmlOptions options = GTK_IMHTML_NO_COLOURS; | 32 GtkIMHtmlOptions options = GTK_IMHTML_NO_COLOURS; |
53 | 53 |
54 if(*tmp == '<') | 54 if(*tmp == '<') |
55 options |= GTK_IMHTML_NO_NEWLINE; | 55 options |= GTK_IMHTML_NO_NEWLINE; |
56 | 56 |
57 if (gaim_prefs_get_bool("/gaim/gtk/conversations/show_urls_as_links")) | 57 if (gaim_prefs_get_bool("/gaim/gtk/conversations/show_urls_as_links")) |
58 tmp2 = linkify_text(tmp); | 58 tmp2 = gaim_markup_linkify(tmp); |
59 else | 59 else |
60 tmp2 = g_strdup(tmp); | 60 tmp2 = g_strdup(tmp); |
61 | 61 |
62 gtkconv = GAIM_GTK_CONVERSATION(c); | 62 gtkconv = GAIM_GTK_CONVERSATION(c); |
63 | 63 |