| 16044:257072807aa8 | 16045:d9add5eda4cd |
|---|---|
| 1044 #endif /* HAVE_REGEX_H */ | 1044 #endif /* HAVE_REGEX_H */ |
| 1045 gboolean timestamps; | 1045 gboolean timestamps; |
| 1046 gchar *ts_s; | 1046 gchar *ts_s; |
| 1047 gchar *esc_s, *cat_s, *tmp, *s; | 1047 gchar *esc_s, *cat_s, *tmp, *s; |
| 1048 | 1048 |
| 1049 if (!purple_prefs_get_bool("/purple/gtk/debug/enabled") || | 1049 if (debug_win == NULL || |
| 1050 (debug_win == NULL)) | 1050 !purple_prefs_get_bool("/purple/gtk/debug/enabled")) |
| 1051 { | 1051 { |
| 1052 return; | 1052 return; |
| 1053 } | 1053 } |
| 1054 | 1054 |
| 1055 timestamps = purple_prefs_get_bool("/core/debug/timestamps"); | 1055 timestamps = purple_prefs_get_bool("/core/debug/timestamps"); |
| 1105 } | 1105 } |
| 1106 | 1106 |
| 1107 static gboolean | 1107 static gboolean |
| 1108 pidgin_debug_is_enabled(PurpleDebugLevel level, const char *category) | 1108 pidgin_debug_is_enabled(PurpleDebugLevel level, const char *category) |
| 1109 { | 1109 { |
| 1110 return (purple_prefs_get_bool("/purple/gtk/debug/enabled") && | 1110 return (debug_win != NULL && |
| 1111 debug_win != NULL); | 1111 purple_prefs_get_bool("/purple/gtk/debug/enabled")); |
| 1112 } | 1112 } |
| 1113 | 1113 |
| 1114 static PurpleDebugUiOps ops = | 1114 static PurpleDebugUiOps ops = |
| 1115 { | 1115 { |
| 1116 pidgin_debug_print, | 1116 pidgin_debug_print, |