Commit 7ed208d84834274aea301dc2f1d2ca99e0d46d03
1 parent
bffeb1ce
Exists in
master
and in
1 other branch
Adding release info when trace window starts.
Showing
3 changed files
with
28 additions
and
11 deletions
Show diff stats
configure.ac
| @@ -174,18 +174,20 @@ AC_SUBST(PACKAGE_RELEASE,$app_cv_release) | @@ -174,18 +174,20 @@ AC_SUBST(PACKAGE_RELEASE,$app_cv_release) | ||
| 174 | AC_SUBST(PACKAGE_MAJOR_RELEASE,$app_rls_major) | 174 | AC_SUBST(PACKAGE_MAJOR_RELEASE,$app_rls_major) |
| 175 | AC_SUBST(PACKAGE_MINOR_RELEASE,$app_rls_minor) | 175 | AC_SUBST(PACKAGE_MINOR_RELEASE,$app_rls_minor) |
| 176 | 176 | ||
| 177 | -rpq_build_date=`LANG=C date` | ||
| 178 | -rpq_timestamp=`date +%Y%m%d%H%M%S` | ||
| 179 | -rpq_revision=`date +"%Y%m%d"` | ||
| 180 | -sccs_date=`date +%Y/%m/%d` | 177 | +date="date" |
| 178 | +test -z "$SOURCE_DATE_EPOCH" || date="$date -u -d@$SOURCE_DATE_EPOCH" | ||
| 179 | +rpq_build_date=`LANG=C $date` | ||
| 180 | +rpq_timestamp=`$date +%Y%m%d%H%M%S` | ||
| 181 | +rpq_revision=`$date +"%Y%m%d"` | ||
| 182 | +sccs_date=`$date +%Y/%m/%d` | ||
| 181 | sccs_user=$USER | 183 | sccs_user=$USER |
| 182 | 184 | ||
| 183 | -AC_SUBST(RPQ_BUILD_DATE,$rpq_build_date) | ||
| 184 | -AC_SUBST(RPQ_TIMESTAMP,$rpq_timestamp) | ||
| 185 | -AC_SUBST(RPQ_REVISION,$rpq_revision) | 185 | +AC_DEFINE_UNQUOTED(RPQ_BUILD_DATE,$rpq_build_date) |
| 186 | +AC_DEFINE_UNQUOTED(RPQ_TIMESTAMP,$rpq_timestamp) | ||
| 187 | +AC_DEFINE_UNQUOTED(RPQ_REVISION,$rpq_revision) | ||
| 186 | 188 | ||
| 187 | -AC_SUBST(SCCS_USER,$USER) | ||
| 188 | -AC_SUBST(SCCS_DATE,$sccs_date) | 189 | +AC_DEFINE_UNQUOTED(SCCS_USER,$USER) |
| 190 | +AC_DEFINE_UNQUOTED(SCCS_DATE,$sccs_date) | ||
| 189 | 191 | ||
| 190 | case "$host" in | 192 | case "$host" in |
| 191 | *-mingw32|*-pc-msys) | 193 | *-mingw32|*-pc-msys) |
src/include/config.h.in
| @@ -37,7 +37,12 @@ | @@ -37,7 +37,12 @@ | ||
| 37 | #undef PRODUCT_NAME | 37 | #undef PRODUCT_NAME |
| 38 | 38 | ||
| 39 | #undef HAVE_LIBM | 39 | #undef HAVE_LIBM |
| 40 | - #undef HAVE_GNOME | ||
| 41 | - #undef HAVE_GTKMAC | 40 | + |
| 41 | + #undef RPQ_BUILD_DATE | ||
| 42 | + #undef RPQ_TIMESTAMP | ||
| 43 | + #undef RPQ_REVISION | ||
| 44 | + #undef SCCS_USER | ||
| 45 | + #undef SCCS_DATE | ||
| 46 | + | ||
| 42 | 47 | ||
| 43 | #endif /* LIBV3270_CONFIG_INCLUDED */ | 48 | #endif /* LIBV3270_CONFIG_INCLUDED */ |
src/trace/trace.c
| @@ -123,6 +123,10 @@ | @@ -123,6 +123,10 @@ | ||
| 123 | if(hSession) { | 123 | if(hSession) { |
| 124 | lib3270_get_trace_handler(hSession,&widget->trace.handler,&widget->trace.userdata); | 124 | lib3270_get_trace_handler(hSession,&widget->trace.handler,&widget->trace.userdata); |
| 125 | lib3270_set_trace_handler(hSession,trace_handler,(void *) widget); | 125 | lib3270_set_trace_handler(hSession,trace_handler,(void *) widget); |
| 126 | + | ||
| 127 | + g_autofree gchar * release = g_strdup_printf("Protocol library release is %s\n",lib3270_get_build_rpq_timestamp()); | ||
| 128 | + v3270_trace_append_text(GTK_WIDGET(widget),release); | ||
| 129 | + | ||
| 126 | } | 130 | } |
| 127 | 131 | ||
| 128 | // v3270_toggle_button_set_session | 132 | // v3270_toggle_button_set_session |
| @@ -130,6 +134,7 @@ | @@ -130,6 +134,7 @@ | ||
| 130 | for(ix = 0; ix < G_N_ELEMENTS(toggles); ix++) | 134 | for(ix = 0; ix < G_N_ELEMENTS(toggles); ix++) |
| 131 | v3270_toggle_button_set_session(widget->buttons.widgets[ix],hSession); | 135 | v3270_toggle_button_set_session(widget->buttons.widgets[ix],hSession); |
| 132 | 136 | ||
| 137 | + | ||
| 133 | } | 138 | } |
| 134 | 139 | ||
| 135 | static void finalize(GObject *object) { | 140 | static void finalize(GObject *object) { |
| @@ -415,7 +420,12 @@ | @@ -415,7 +420,12 @@ | ||
| 415 | { | 420 | { |
| 416 | widget->terminal = terminal; | 421 | widget->terminal = terminal; |
| 417 | g_object_ref_sink(G_OBJECT(terminal)); | 422 | g_object_ref_sink(G_OBJECT(terminal)); |
| 423 | + | ||
| 418 | set_session(widget, v3270_get_session(widget->terminal)); | 424 | set_session(widget, v3270_get_session(widget->terminal)); |
| 425 | + | ||
| 426 | + g_autofree gchar * release = g_strdup_printf("Terminal library release is %s\n\n",G_STRINGIFY(RPQ_TIMESTAMP)); | ||
| 427 | + v3270_trace_append_text(GTK_WIDGET(widget),release); | ||
| 428 | + | ||
| 419 | GTK_V3270(terminal)->trace = GTK_WIDGET(widget); | 429 | GTK_V3270(terminal)->trace = GTK_WIDGET(widget); |
| 420 | 430 | ||
| 421 | g_object_notify_by_pspec( | 431 | g_object_notify_by_pspec( |