From: <sa...@us...> - 2006-08-15 04:07:56
|
Revision: 16763 Author: sadrul Date: 2006-08-14 21:07:38 -0700 (Mon, 14 Aug 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16763&view=rev Log Message: ----------- Redirect the debug messages to stderr when started with -d. Fix the order of the windows in the windowlist. Modified Paths: -------------- trunk/console/gntdebug.c trunk/console/libgnt/gntmain.c Modified: trunk/console/gntdebug.c =================================================================== --- trunk/console/gntdebug.c 2006-08-15 04:05:27 UTC (rev 16762) +++ trunk/console/gntdebug.c 2006-08-15 04:07:38 UTC (rev 16763) @@ -80,6 +80,12 @@ debug.window = debug.tview = NULL; } +static void +print_stderr(const char *string) +{ + g_printerr("%s", string); +} + void gg_debug_window_show() { if (debug.window == NULL) @@ -102,6 +108,7 @@ void gg_debug_init() { + g_set_print_handler(print_stderr); /* Redirect the debug messages to stderr */ if (gaim_debug_is_enabled()) gg_debug_window_show(); } Modified: trunk/console/libgnt/gntmain.c =================================================================== --- trunk/console/libgnt/gntmain.c 2006-08-15 04:05:27 UTC (rev 16762) +++ trunk/console/libgnt/gntmain.c 2006-08-15 04:07:38 UTC (rev 16763) @@ -273,8 +273,8 @@ { GntBox *box = GNT_BOX(iter->data); - gnt_tree_add_row_after(GNT_TREE(tree), box, - gnt_tree_create_row(GNT_TREE(tree), box->title), NULL, NULL); + gnt_tree_add_row_last(GNT_TREE(tree), box, + gnt_tree_create_row(GNT_TREE(tree), box->title), NULL); update_window_in_list(GNT_WIDGET(box)); } @@ -752,9 +752,9 @@ if ((GNT_IS_BOX(widget) && GNT_BOX(widget)->title) && window_list.window != widget && GNT_WIDGET_IS_FLAG_SET(widget, GNT_WIDGET_CAN_TAKE_FOCUS)) { - gnt_tree_add_row_after(GNT_TREE(window_list.tree), widget, + gnt_tree_add_row_last(GNT_TREE(window_list.tree), widget, gnt_tree_create_row(GNT_TREE(window_list.tree), GNT_BOX(widget)->title), - NULL, NULL); + NULL); update_window_in_list(widget); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |