Commit c9000e05 authored by claes's avatar claes

Alarm texts converted to utf8

parent f2ae8a56
/*
* Proview $Id: xtt_op_gtk.cpp,v 1.2 2007-01-11 11:40:31 claes Exp $
* Proview $Id: xtt_op_gtk.cpp,v 1.3 2007-02-21 14:14:21 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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment