Changeset 4b4a8f1d20206483309417711a9125ac3e7b66e4
- 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
| r2b15f62 |
r4b4a8f1 |
|
| 49 | 49 | if( p_msg->i_start != i_stop ) |
|---|
| 50 | 50 | { |
|---|
| 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 | | |
|---|
| 56 | 51 | static const char * ppsz_type[4] = { ": ", " error: ", " warning: ", |
|---|
| 57 | 52 | " 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 | }; |
|---|
| 60 | 59 | for( i_start = p_msg->i_start; |
|---|
| 61 | 60 | i_start != i_stop; |
|---|
| … | … | |
| 64 | 63 | text->append( QString(p_msg->p_msg[i_start].psz_module) + |
|---|
| 65 | 64 | 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>" ); |
|---|
| 67 | 67 | |
|---|
| 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 ); |
|---|
| 82 | 68 | } |
|---|
| 83 | 69 | |
|---|
| … | … | |
| 85 | 71 | p_msg->i_start = i_start; |
|---|
| 86 | 72 | 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 ) ); |
|---|
| 89 | 73 | |
|---|
| 90 | 74 | } |
|---|