Mercurial > pidgin
comparison src/log.c @ 13760:fb177706f6ba
[gaim-migrate @ 16171]
Fixes in 10 minutes or less, or your money back.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 10 May 2006 12:17:21 +0000 |
parents | 51d436a267ac |
children | b355f7ed1814 |
comparison
equal
deleted
inserted
replaced
13759:a849cf259d00 | 13760:fb177706f6ba |
---|---|
22 * along with this program; if not, write to the Free Software | 22 * along with this program; if not, write to the Free Software |
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 */ | 24 */ |
25 | 25 |
26 #include "account.h" | 26 #include "account.h" |
27 #include "dbus-maybe.h" | |
27 #include "debug.h" | 28 #include "debug.h" |
28 #include "internal.h" | 29 #include "internal.h" |
29 #include "log.h" | 30 #include "log.h" |
30 #include "prefs.h" | 31 #include "prefs.h" |
31 #include "util.h" | 32 #include "util.h" |
78 { | 79 { |
79 GaimLog *log; | 80 GaimLog *log; |
80 | 81 |
81 /* IMPORTANT: Make sure to initialize all the members of GaimLog */ | 82 /* IMPORTANT: Make sure to initialize all the members of GaimLog */ |
82 log = g_slice_new(GaimLog); | 83 log = g_slice_new(GaimLog); |
84 GAIM_DBUS_REGISTER_POINTER(log, GaimLog); | |
83 | 85 |
84 log->type = type; | 86 log->type = type; |
85 log->name = g_strdup(gaim_normalize(account, name)); | 87 log->name = g_strdup(gaim_normalize(account, name)); |
86 log->account = account; | 88 log->account = account; |
87 log->conv = conv; | 89 log->conv = conv; |
131 g_free((char *)log->tm->tm_zone); | 133 g_free((char *)log->tm->tm_zone); |
132 #endif | 134 #endif |
133 g_slice_free(struct tm, log->tm); | 135 g_slice_free(struct tm, log->tm); |
134 } | 136 } |
135 | 137 |
138 GAIM_DBUS_UNREGISTER_POINTER(log); | |
136 g_slice_free(GaimLog, log); | 139 g_slice_free(GaimLog, log); |
137 } | 140 } |
138 | 141 |
139 void gaim_log_write(GaimLog *log, GaimMessageFlags type, | 142 void gaim_log_write(GaimLog *log, GaimMessageFlags type, |
140 const char *from, time_t time, const char *message) | 143 const char *from, time_t time, const char *message) |