| 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); |