Changeset 4b4a8f1d20206483309417711a9125ac3e7b66e4

Show
Ignore:
Timestamp:
11/10/02 14:50:43 (6 years ago)
Author:
Sigmund Augdal Helberg <sigmunau@videolan.org>
git-committer:
Sigmund Augdal Helberg <sigmunau@videolan.org> 1034340643 +0000
git-parent:

[f78e5583bea6efe900d958134be16955658ac626]

git-author:
Sigmund Augdal Helberg <sigmunau@videolan.org> 1034340643 +0000
Message:

added some coloring to the messages window in the kde interface

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/kde/messages.cpp

    r2b15f62 r4b4a8f1  
    4949    if( p_msg->i_start != i_stop ) 
    5050    { 
    51 //         static GdkColor white  = { 0, 0xffff, 0xffff, 0xffff }; 
    52 //         static GdkColor gray   = { 0, 0xaaaa, 0xaaaa, 0xaaaa }; 
    53 //         static GdkColor yellow = { 0, 0xffff, 0xffff, 0x6666 }; 
    54 //         static GdkColor red    = { 0, 0xffff, 0x6666, 0x6666 }; 
    55          
    5651        static const char * ppsz_type[4] = { ": ", " error: ", " warning: ", 
    5752                                             " debug: " }; 
    58 //        static GdkColor *   pp_color[4] = { &white, &red, &yellow, &gray }; 
    59  
     53        static const char * ppsz_color[4] = { 
     54            "<font color=#FFFFFF>", 
     55            "<font color=#FF0000>", 
     56            "<font color=#CCCC00>", 
     57            "<font>" 
     58        }; 
    6059        for( i_start = p_msg->i_start; 
    6160             i_start != i_stop; 
     
    6463            text->append( QString(p_msg->p_msg[i_start].psz_module) + 
    6564                          ppsz_type[p_msg->p_msg[i_start].i_type] + 
    66                           p_msg->p_msg[i_start].psz_msg + "<br>"); 
     65                          ppsz_color[p_msg->p_msg[i_start].i_type] + 
     66                          p_msg->p_msg[i_start].psz_msg + "</font>" ); 
    6767             
    68 //             /* Append all messages to log window */ 
    69 //             gtk_text_insert( p_intf->p_sys->p_messages_text, NULL, &gray, 
    70 //              NULL, p_msg->p_msg[i_start].psz_module, -1 ); 
    71  
    72 //             gtk_text_insert( p_intf->p_sys->p_messages_text, NULL, &gray, 
    73 //                 NULL, ppsz_type[p_msg->p_msg[i_start].i_type], 
    74 //                 -1 ); 
    75  
    76 //             gtk_text_insert( p_intf->p_sys->p_messages_text, NULL, 
    77 //                 pp_color[p_msg->p_msg[i_start].i_type], NULL, 
    78 //                 p_msg->p_msg[i_start].psz_msg, -1 ); 
    79  
    80 //             gtk_text_insert( p_intf->p_sys->p_messages_text, NULL, &gray, 
    81 //                 NULL, "\n", -1 ); 
    8268        } 
    8369 
     
    8571        p_msg->i_start = i_start; 
    8672        vlc_mutex_unlock( p_msg->p_lock ); 
    87 //        gtk_text_set_point( p_intf->p_sys->p_messages_text, 
    88 //                    gtk_text_get_length( p_intf->p_sys->p_messages_text ) ); 
    8973 
    9074    }