Changeset 13205


Ignore:
Timestamp:
Feb 4, 2012, 11:59:42 PM (7 years ago)
Author:
jordan
Message:

(trunk gtk) when processing log messages for the Message Log window and we encounter an error messages, pass it to g_warning() as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/msgwin.c

    r12970 r13205  
    379379                                           COL_SEQUENCE, ++sequence,
    380380                                           -1 );
     381
     382        /* if it's an error message, dump it to the terminal too */
     383        if( i->level == TR_MSG_ERR )
     384        {
     385            GString * gstr = g_string_sized_new( 512 );
     386            g_string_append_printf( gstr, "%s:%d %s", i->file, i->line, i->message );
     387            if( i->name != NULL )
     388                g_string_append_printf( gstr, " (%s)", i->name );
     389            g_warning( "%s", gstr->str );
     390            g_string_free( gstr, TRUE );
     391        }
    381392    }
    382393
Note: See TracChangeset for help on using the changeset viewer.