Mercurial > pidgin
comparison console/gntdebug.c @ 15639:233c4a2f7b77
Suppress debug messages from libgnt.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 15 Feb 2007 19:25:28 +0000 |
parents | c01f62c83647 |
children |
comparison
equal
deleted
inserted
replaced
15638:37d9f44c7de1 | 15639:233c4a2f7b77 |
---|---|
131 static void | 131 static void |
132 print_stderr(const char *string) | 132 print_stderr(const char *string) |
133 { | 133 { |
134 g_printerr("%s", string); | 134 g_printerr("%s", string); |
135 } | 135 } |
136 | |
137 static void | |
138 suppress_error_messages(const char *message) | |
139 {} | |
136 | 140 |
137 static void | 141 static void |
138 toggle_pause(GntWidget *w, gpointer n) | 142 toggle_pause(GntWidget *w, gpointer n) |
139 { | 143 { |
140 debug.paused = !debug.paused; | 144 debug.paused = !debug.paused; |
281 REGISTER_G_LOG_HANDLER("GModule"); | 285 REGISTER_G_LOG_HANDLER("GModule"); |
282 REGISTER_G_LOG_HANDLER("GLib-GObject"); | 286 REGISTER_G_LOG_HANDLER("GLib-GObject"); |
283 REGISTER_G_LOG_HANDLER("GThread"); | 287 REGISTER_G_LOG_HANDLER("GThread"); |
284 | 288 |
285 g_set_print_handler(print_stderr); /* Redirect the debug messages to stderr */ | 289 g_set_print_handler(print_stderr); /* Redirect the debug messages to stderr */ |
290 g_set_printerr_handler(suppress_error_messages); | |
286 | 291 |
287 gaim_prefs_add_none(PREF_ROOT); | 292 gaim_prefs_add_none(PREF_ROOT); |
288 gaim_prefs_add_none(PREF_ROOT "/size"); | 293 gaim_prefs_add_none(PREF_ROOT "/size"); |
289 gaim_prefs_add_int(PREF_ROOT "/size/width", 60); | 294 gaim_prefs_add_int(PREF_ROOT "/size/width", 60); |
290 gaim_prefs_add_int(PREF_ROOT "/size/height", 15); | 295 gaim_prefs_add_int(PREF_ROOT "/size/height", 15); |