Commit 4b11aad3 authored by Claes Sjofors's avatar Claes Sjofors

UTF8 conversion of window title

parent 86083997
......@@ -447,10 +447,10 @@ WAttGtk::WAttGtk(
if ( EVEN(sts)) return;
toplevel = (GtkWidget *) g_object_new( GTK_TYPE_WINDOW,
"default-height", 570,
"default-width", 410,
"title", namep,
NULL);
"default-height", 570,
"default-width", 410,
"title", CoWowGtk::convert_utf8(namep),
NULL);
g_signal_connect( toplevel, "delete_event", G_CALLBACK(delete_event), this);
g_signal_connect( toplevel, "destroy", G_CALLBACK(destroy_event), this);
......
......@@ -124,10 +124,10 @@ WCrrGtk::WCrrGtk(
strncpy( title, namep, sizeof(title));
toplevel = (GtkWidget *) g_object_new( GTK_TYPE_WINDOW,
"default-height", 420,
"default-width", 600,
"title", title,
NULL);
"default-height", 420,
"default-width", 600,
"title", CoWowGtk::convert_utf8(title),
NULL);
g_signal_connect( toplevel, "delete_event", G_CALLBACK(delete_event), this);
g_signal_connect( toplevel, "destroy", G_CALLBACK(destroy_event), this);
......
......@@ -317,7 +317,7 @@ GeCurveGtk::GeCurveGtk( void *gc_parent_ctx,
toplevel = (GtkWidget *) g_object_new( GTK_TYPE_WINDOW,
"default-height", window_height,
"default-width", window_width,
"title", title,
"title", CoWowGtk::convert_utf8(title),
NULL);
g_signal_connect( toplevel, "delete_event", G_CALLBACK(delete_event), this);
......
......@@ -450,10 +450,10 @@ XAttGtk::XAttGtk( GtkWidget *xa_parent_wid,
cdh_StrncpyCutOff( title, title, 100, 1);
toplevel = (GtkWidget *) g_object_new( GTK_TYPE_WINDOW,
"default-height", 600,
"default-width", 420,
"title", title,
NULL);
"default-height", 600,
"default-width", 420,
"title", CoWowGtk::convert_utf8(title),
NULL);
g_signal_connect( toplevel, "delete_event", G_CALLBACK(delete_event), this);
g_signal_connect( toplevel, "destroy", G_CALLBACK(destroy_event), this);
......
......@@ -329,10 +329,10 @@ XAttOneGtk::XAttOneGtk( GtkWidget *xa_parent_wid,
if ( EVEN(*xa_sts)) return;
toplevel = (GtkWidget *) g_object_new( GTK_TYPE_WINDOW,
"default-height", 200,
"default-width", 500,
"title", title,
NULL);
"default-height", 200,
"default-width", 500,
"title", CoWowGtk::convert_utf8(title),
NULL);
g_signal_connect( toplevel, "delete_event", G_CALLBACK(delete_event), this);
g_signal_connect( toplevel, "destroy", G_CALLBACK(destroy_event), this);
......
......@@ -118,11 +118,11 @@ XCrrGtk::XCrrGtk(
*xa_sts = gdh_AttrrefToName( &objar, title, sizeof(title), cdh_mNName);
if ( EVEN(*xa_sts)) return;
toplevel = (GtkWidget *) g_object_new( GTK_TYPE_WINDOW,
"default-height", 420,
"default-width", 600,
"title", title,
NULL);
toplevel = (GtkWidget *) g_object_new( GTK_TYPE_WINDOW,
"default-height", 420,
"default-width", 600,
"title", CoWowGtk::convert_utf8(title),
NULL);
g_signal_connect( toplevel, "delete_event", G_CALLBACK(delete_event), this);
g_signal_connect( toplevel, "destroy", G_CALLBACK(destroy_event), this);
......
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