Commit f7da33217d6474e295739277431d2cefdf3a44ac

Authored by Perry Werneck
1 parent d4f7bd26
Exists in master and in 1 other branch develop

Updating version info.

Showing 1 changed file with 4 additions and 14 deletions   Show diff stats
src/trace/trace.c
... ... @@ -438,23 +438,13 @@
438 438 // Set header
439 439 GtkTextBuffer * buffer = v3270_trace_get_text_buffer(GTK_WIDGET(widget));
440 440  
441   - const char * 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 441 GtkTextIter itr;
452 442 gtk_text_buffer_get_end_iter(buffer,&itr);
453 443  
454   - for(ix = 0; ix < G_N_ELEMENTS(text); ix++)
455   - {
456   - gtk_text_buffer_insert(buffer,&itr,text[ix],-1);
457   - }
  444 + lib3270_autoptr(char) lib3270_version = lib3270_get_version_info();
  445 + gtk_text_buffer_insert(buffer,&itr,lib3270_version,-1);
  446 + gtk_text_buffer_insert(buffer,&itr,"\n" PACKAGE_NAME " version " PACKAGE_VERSION "-" G_STRINGIFY(PACKAGE_RELEASE) " build " G_STRINGIFY(RPQ_TIMESTAMP) "\n\n",-1);
  447 +
458 448  
459 449 }
460 450  
... ...