Mercurial > pidgin.yaz
comparison src/gtkdebug.c @ 5738:ec032cb2f9ec
[gaim-migrate @ 6162]
This probably doesn't fix problems when we display high ascii and stuff in
the debug window, but it at least displays them now, I think.. just now it
says it's not valid UTF-8.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Wed, 04 Jun 2003 07:15:17 +0000 |
| parents | aa8dbb7e0a4d |
| children | 5e93fc46d1af |
comparison
equal
deleted
inserted
replaced
| 5737:72ced7411599 | 5738:ec032cb2f9ec |
|---|---|
| 280 } | 280 } |
| 281 | 281 |
| 282 if (gaim_prefs_get_bool("/gaim/gtk/debug/enabled") && | 282 if (gaim_prefs_get_bool("/gaim/gtk/debug/enabled") && |
| 283 debug_win != NULL && !debug_win->paused) { | 283 debug_win != NULL && !debug_win->paused) { |
| 284 | 284 |
| 285 gchar *esc_s, *cat_s, *s; | 285 gchar *esc_s, *cat_s, *utf8_s, *s; |
| 286 | 286 |
| 287 if (category == NULL) | 287 if (category == NULL) |
| 288 cat_s = g_strdup(""); | 288 cat_s = g_strdup(""); |
| 289 else | 289 else |
| 290 cat_s = g_strdup_printf("<b>%s:</b> ", category); | 290 cat_s = g_strdup_printf("<b>%s:</b> ", category); |
| 294 s = g_strdup_printf("<font color=\"%s\">%s%s%s</font>", | 294 s = g_strdup_printf("<font color=\"%s\">%s%s%s</font>", |
| 295 debug_fg_colors[level], ts_s, cat_s, esc_s); | 295 debug_fg_colors[level], ts_s, cat_s, esc_s); |
| 296 | 296 |
| 297 g_free(esc_s); | 297 g_free(esc_s); |
| 298 | 298 |
| 299 utf8_s = gaim_try_conv_to_utf8(s); | |
| 300 g_free(s); | |
| 301 s = utf8_s; | |
| 302 | |
| 299 if (level == GAIM_DEBUG_FATAL) { | 303 if (level == GAIM_DEBUG_FATAL) { |
| 300 gchar *temp = s; | 304 gchar *temp = s; |
| 301 | 305 |
| 306 g_free(s); | |
| 302 s = g_strdup_printf("<b>%s</b>", temp); | 307 s = g_strdup_printf("<b>%s</b>", temp); |
| 303 g_free(temp); | 308 g_free(temp); |
| 304 } | 309 } |
| 305 | 310 |
| 306 g_free(cat_s); | 311 g_free(cat_s); |
