diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-02-09 22:31:03 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-02-09 22:31:03 +0000 |
commit | e11441c2d9390f3e9645c162b8b1ae9a10a78a63 (patch) | |
tree | 7f8ee39ed708dd9130baa151d2827afb75f21106 /src | |
parent | 1a07b922fe717e0b8144d5249e38153538e6aeea (diff) |
Make a couple debug messages conditional on DEBUG_MISC.
2006-02-09 Behdad Esfahbod <behdad@gnome.org>
* src/vteapp.c: Make a couple debug messages conditional on
DEBUG_MISC.
Diffstat (limited to 'src')
-rw-r--r-- | src/vteapp.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/vteapp.c b/src/vteapp.c index f520094..ae9eb73 100644 --- a/src/vteapp.c +++ b/src/vteapp.c @@ -117,12 +117,20 @@ destroy_and_quit(GtkWidget *widget, gpointer data) static void destroy_and_quit_eof(GtkWidget *widget, gpointer data) { - g_print("Detected EOF.\n"); +#ifdef VTE_DEBUG + if (_vte_debug_on(VTE_DEBUG_MISC)) { + g_print("Detected EOF.\n"); + } +#endif } static void destroy_and_quit_exited(GtkWidget *widget, gpointer data) { - g_print("Detected child exit.\n"); +#ifdef VTE_DEBUG + if (_vte_debug_on(VTE_DEBUG_MISC)) { + g_print("Detected child exit.\n"); + } +#endif destroy_and_quit(widget, data); } |