Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
4b4a8f1d
Commit
4b4a8f1d
authored
Oct 11, 2002
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added some coloring to the messages window in the kde interface
parent
f78e5583
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
24 deletions
+8
-24
modules/gui/kde/messages.cpp
modules/gui/kde/messages.cpp
+8
-24
No files found.
modules/gui/kde/messages.cpp
View file @
4b4a8f1d
...
...
@@ -48,44 +48,28 @@ void KMessagesWindow::update()
if
(
p_msg
->
i_start
!=
i_stop
)
{
// static GdkColor white = { 0, 0xffff, 0xffff, 0xffff };
// static GdkColor gray = { 0, 0xaaaa, 0xaaaa, 0xaaaa };
// static GdkColor yellow = { 0, 0xffff, 0xffff, 0x6666 };
// static GdkColor red = { 0, 0xffff, 0x6666, 0x6666 };
static
const
char
*
ppsz_type
[
4
]
=
{
": "
,
" error: "
,
" warning: "
,
" debug: "
};
// static GdkColor * pp_color[4] = { &white, &red, &yellow, &gray };
static
const
char
*
ppsz_color
[
4
]
=
{
"<font color=#FFFFFF>"
,
"<font color=#FF0000>"
,
"<font color=#CCCC00>"
,
"<font>"
};
for
(
i_start
=
p_msg
->
i_start
;
i_start
!=
i_stop
;
i_start
=
(
i_start
+
1
)
%
VLC_MSG_QSIZE
)
{
text
->
append
(
QString
(
p_msg
->
p_msg
[
i_start
].
psz_module
)
+
ppsz_type
[
p_msg
->
p_msg
[
i_start
].
i_type
]
+
p_msg
->
p_msg
[
i_start
].
psz_msg
+
"<br>"
);
ppsz_color
[
p_msg
->
p_msg
[
i_start
].
i_type
]
+
p_msg
->
p_msg
[
i_start
].
psz_msg
+
"</font>"
);
// /* Append all messages to log window */
// gtk_text_insert( p_intf->p_sys->p_messages_text, NULL, &gray,
// NULL, p_msg->p_msg[i_start].psz_module, -1 );
// gtk_text_insert( p_intf->p_sys->p_messages_text, NULL, &gray,
// NULL, ppsz_type[p_msg->p_msg[i_start].i_type],
// -1 );
// gtk_text_insert( p_intf->p_sys->p_messages_text, NULL,
// pp_color[p_msg->p_msg[i_start].i_type], NULL,
// p_msg->p_msg[i_start].psz_msg, -1 );
// gtk_text_insert( p_intf->p_sys->p_messages_text, NULL, &gray,
// NULL, "\n", -1 );
}
vlc_mutex_lock
(
p_msg
->
p_lock
);
p_msg
->
i_start
=
i_start
;
vlc_mutex_unlock
(
p_msg
->
p_lock
);
// gtk_text_set_point( p_intf->p_sys->p_messages_text,
// gtk_text_get_length( p_intf->p_sys->p_messages_text ) );
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment