Commit 3d43a066a37d159471d1730aac4769365356dd09
1 parent
c812e2cf
Exists in
master
and in
1 other branch
Still working on segfault.
Showing
1 changed file
with
22 additions
and
12 deletions
Show diff stats
src/trace/trace.c
@@ -432,19 +432,29 @@ | @@ -432,19 +432,29 @@ | ||
432 | GTK_V3270_GET_CLASS(terminal)->properties.trace | 432 | GTK_V3270_GET_CLASS(terminal)->properties.trace |
433 | ); | 433 | ); |
434 | 434 | ||
435 | - const gchar * lib3270_release = lib3270_get_build_rpq_timestamp(); | ||
436 | - const gchar * libv3270_release = G_STRINGIFY(RPQ_TIMESTAMP); | ||
437 | - | ||
438 | - g_autofree gchar * test = g_strdup(lib3270_release); | ||
439 | - | ||
440 | - g_autofree gchar * release = | ||
441 | - g_strconcat( G_STRINGIFY(PRODUCT_NAME) " Revisions ", | ||
442 | - lib3270_release, | ||
443 | - " ", libv3270_release, "\n\n", | ||
444 | - NULL | ||
445 | - ); | 435 | + } |
446 | 436 | ||
447 | - v3270_trace_append_text(GTK_WIDGET(widget),release); | 437 | + { |
438 | + // Set header | ||
439 | + GtkTextBuffer * buffer = v3270_trace_get_text_buffer(GTK_WIDGET(widget)); | ||
440 | + | ||
441 | + const gchar * text[] = { | ||
442 | + G_STRINGIFY(PRODUCT_NAME), | ||
443 | + " Revisions ", | ||
444 | + lib3270_get_build_rpq_timestamp(), | ||
445 | + " ", | ||
446 | + G_STRINGIFY(RPQ_TIMESTAMP), | ||
447 | + "\n\n" | ||
448 | + }; | ||
449 | + | ||
450 | + size_t ix; | ||
451 | + GtkTextIter itr; | ||
452 | + gtk_text_buffer_get_end_iter(buffer,&itr); | ||
453 | + | ||
454 | + for(ix = 0; ix < G_N_ELEMENTS(text); ix++) | ||
455 | + { | ||
456 | + gtk_text_buffer_insert(buffer,&itr,text[ix],-1); | ||
457 | + } | ||
448 | 458 | ||
449 | } | 459 | } |
450 | 460 |