Mercurial > pidgin.yaz
comparison src/gtkdebug.c @ 13033:69b3d5cbd2b1
[gaim-migrate @ 15389]
Kill gaim_date() and gaim_date_full(). The former isn't used and the latter is used only twice. This makes the buddy pounce pop-ups and debug log headers contain localized dates, fixing part of SF Bug #1325915. Thanks to Bleeter for discovering that gaim_date() isn't used.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Wed, 25 Jan 2006 02:58:54 +0000 |
parents | ff267281e882 |
children | e1e5462b7d81 |
comparison
equal
deleted
inserted
replaced
13032:4016a35bdd4d | 13033:69b3d5cbd2b1 |
---|---|
210 save_writefile_cb(void *user_data, const char *filename) | 210 save_writefile_cb(void *user_data, const char *filename) |
211 { | 211 { |
212 DebugWindow *win = (DebugWindow *)user_data; | 212 DebugWindow *win = (DebugWindow *)user_data; |
213 FILE *fp; | 213 FILE *fp; |
214 char *tmp; | 214 char *tmp; |
215 time_t now = time(NULL); | |
216 char date[64]; | |
215 | 217 |
216 if ((fp = g_fopen(filename, "w+")) == NULL) { | 218 if ((fp = g_fopen(filename, "w+")) == NULL) { |
217 gaim_notify_error(win, NULL, _("Unable to open file."), NULL); | 219 gaim_notify_error(win, NULL, _("Unable to open file."), NULL); |
218 return; | 220 return; |
219 } | 221 } |
220 | 222 |
221 tmp = gtk_imhtml_get_text(GTK_IMHTML(win->text), NULL, NULL); | 223 tmp = gtk_imhtml_get_text(GTK_IMHTML(win->text), NULL, NULL); |
222 fprintf(fp, "Gaim Debug log : %s\n", gaim_date_full()); | 224 strftime(date, sizeof(date), "%c", localtime(&now)); |
225 fprintf(fp, "Gaim Debug Log : %s\n", date); | |
223 fprintf(fp, "%s", tmp); | 226 fprintf(fp, "%s", tmp); |
224 g_free(tmp); | 227 g_free(tmp); |
225 | 228 |
226 fclose(fp); | 229 fclose(fp); |
227 } | 230 } |