From 6126cbf57cedf1523c30d8ad3cdf15f272185a99 Mon Sep 17 00:00:00 2001 From: Dan Breslau Date: Wed, 2 Aug 2017 21:22:41 +0100 Subject: [PATCH] Disabling Vala code that does not compile in Centos 6.9 --- src/moonshot-id.vala | 7 ++++--- src/moonshot-warning-dialog.vala | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/moonshot-id.vala b/src/moonshot-id.vala index 5c64933..82ce1ac 100644 --- a/src/moonshot-id.vala +++ b/src/moonshot-id.vala @@ -123,9 +123,10 @@ openssl to produce this format. Alternatively, base64 encode a DER format certi } internal static string format_datetime_now() { - DateTime now = new DateTime.now_utc(); - string dt = now.format("%b %d %T %Y %Z"); - return dt; + // DateTime now = new DateTime.now_utc(); + // string dt = now.format("%b %d %T %Y %Z"); + // return dt; + return "Sorry; formatted date/time strings not available on Centos 6"; } internal void update_server_fingerprint(string fingerprint) { diff --git a/src/moonshot-warning-dialog.vala b/src/moonshot-warning-dialog.vala index b26d609..3471377 100644 --- a/src/moonshot-warning-dialog.vala +++ b/src/moonshot-warning-dialog.vala @@ -75,9 +75,10 @@ class WarningDialog remember_checkbutton.set_receives_default(false); Container action_area = (Container) dialog.get_action_area(); - Button yes_button = (Button) dialog.get_widget_for_response(ResponseType.YES); - yes_button.grab_default(); - yes_button.grab_focus(); + //!! dialog.get_widget_for_response is not available on Centos 6 + // Button yes_button = (Button) dialog.get_widget_for_response(ResponseType.YES); + // yes_button.grab_default(); + // yes_button.grab_focus(); // Not sure if 0.26 is the minimum for MessageDialog.get_message_area. 0.16 sure isn't :-( #if VALA_0_26 -- 2.1.4