Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Esteban Blanc
proview
Commits
c9000e05
Commit
c9000e05
authored
Feb 21, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Alarm texts converted to utf8
parent
f2ae8a56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
xtt/lib/xtt/gtk/xtt_op_gtk.cpp
xtt/lib/xtt/gtk/xtt_op_gtk.cpp
+6
-6
No files found.
xtt/lib/xtt/gtk/xtt_op_gtk.cpp
View file @
c9000e05
/*
* Proview $Id: xtt_op_gtk.cpp,v 1.
2 2007-01-11 11:40:3
1 claes Exp $
* Proview $Id: xtt_op_gtk.cpp,v 1.
3 2007-02-21 14:14:2
1 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -397,7 +397,7 @@ void OpGtk::update_alarm_info()
if
(
info
.
a_alarm_exist
[
i
])
{
sprintf
(
text
,
"<span size=
\"
%d
\"
>%s %s</span>"
,
fsize
,
info
.
a_alarm_alias
[
i
],
info
.
a_alarm_text
[
i
]);
gtk_label_set_markup
(
GTK_LABEL
(
aalarm_label
[
i
]),
text
);
gtk_label_set_markup
(
GTK_LABEL
(
aalarm_label
[
i
]),
CoWowGtk
::
translate_utf8
(
text
)
);
// gtk_widget_modify_bg( aalarm_box[i], GTK_STATE_NORMAL, &red_color);
if
(
i
<
a_height
)
{
g_object_set
(
aalarm_box
[
i
],
"visible"
,
TRUE
,
NULL
);
...
...
@@ -425,7 +425,7 @@ void OpGtk::update_alarm_info()
balarm_prio
=
mh_eEventPrio_B
;
sprintf
(
text
,
"<span size=
\"
%d
\"
>%s %s</span>"
,
fsize
,
info
.
b_alarm_alias
[
0
],
info
.
b_alarm_text
[
0
]);
gtk_label_set_markup
(
GTK_LABEL
(
balarm_label
),
text
);
gtk_label_set_markup
(
GTK_LABEL
(
balarm_label
),
CoWowGtk
::
translate_utf8
(
text
)
);
gtk_widget_modify_bg
(
balarm_ebox
,
GTK_STATE_NORMAL
,
&
yellow_color
);
g_object_set
(
balarm_box
,
"visible"
,
TRUE
,
NULL
);
...
...
@@ -446,7 +446,7 @@ void OpGtk::update_alarm_info()
balarm_prio
=
mh_eEventPrio_C
;
sprintf
(
text
,
"<span size=
\"
%d
\"
>%s %s</span>"
,
fsize
,
info
.
c_alarm_alias
[
0
],
info
.
c_alarm_text
[
0
]);
gtk_label_set_markup
(
GTK_LABEL
(
balarm_label
),
text
);
gtk_label_set_markup
(
GTK_LABEL
(
balarm_label
),
CoWowGtk
::
translate_utf8
(
text
)
);
gtk_widget_modify_bg
(
balarm_ebox
,
GTK_STATE_NORMAL
,
&
blue_color
);
g_object_set
(
balarm_box
,
"visible"
,
TRUE
,
NULL
);
...
...
@@ -468,7 +468,7 @@ void OpGtk::update_alarm_info()
balarm_prio
=
mh_eEventPrio_D
;
sprintf
(
text
,
"<span size=
\"
%d
\"
>%s %s</span>"
,
fsize
,
info
.
d_alarm_alias
[
0
],
info
.
d_alarm_text
[
0
]);
gtk_label_set_markup
(
GTK_LABEL
(
balarm_label
),
text
);
gtk_label_set_markup
(
GTK_LABEL
(
balarm_label
),
CoWowGtk
::
translate_utf8
(
text
)
);
gtk_widget_modify_bg
(
balarm_ebox
,
GTK_STATE_NORMAL
,
&
violet_color
);
g_object_set
(
balarm_box
,
"visible"
,
TRUE
,
NULL
);
...
...
@@ -489,7 +489,7 @@ void OpGtk::update_alarm_info()
balarm_type
=
evlist_eEventType_Info
;
sprintf
(
text
,
"<span size=
\"
%d
\"
>%s %s</span>"
,
fsize
,
info
.
i_alarm_alias
[
0
],
info
.
i_alarm_text
[
0
]);
gtk_label_set_markup
(
GTK_LABEL
(
balarm_label
),
text
);
gtk_label_set_markup
(
GTK_LABEL
(
balarm_label
),
CoWowGtk
::
translate_utf8
(
text
)
);
gtk_widget_modify_bg
(
balarm_ebox
,
GTK_STATE_NORMAL
,
&
green_color
);
g_object_set
(
balarm_box
,
"visible"
,
TRUE
,
NULL
);
...
...
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