comparison console/gntdebug.c @ 14274:43d9afee9c3c

[gaim-migrate @ 16959] Fix a bug where `gntgaim -v` does bad things to the terminal. Bug reported by Mark Schneider. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 21 Aug 2006 22:08:19 +0000
parents 7dfa024c1a4a
children 81650a27f253
comparison
equal deleted inserted replaced
14273:2f82c2494f3f 14274:43d9afee9c3c
104 } 104 }
105 105
106 gnt_widget_show(debug.window); 106 gnt_widget_show(debug.window);
107 } 107 }
108 108
109 static gboolean
110 start_with_debugwin(gpointer null)
111 {
112 gg_debug_window_show();
113 return FALSE;
114 }
115
109 void gg_debug_init() 116 void gg_debug_init()
110 { 117 {
111 g_set_print_handler(print_stderr); /* Redirect the debug messages to stderr */ 118 g_set_print_handler(print_stderr); /* Redirect the debug messages to stderr */
112 if (gaim_debug_is_enabled()) 119 if (gaim_debug_is_enabled())
113 gg_debug_window_show(); 120 g_timeout_add(0, start_with_debugwin, NULL);
114 } 121 }
115 122
116 void gg_debug_uninit() 123 void gg_debug_uninit()
117 { 124 {
118 } 125 }