Disabling Vala code that does not compile in Centos 6.9 centos-1.0.5-1
authorDan Breslau <dbreslau@painless-security.com>
Wed, 2 Aug 2017 20:22:41 +0000 (21:22 +0100)
committerDan Breslau <dbreslau@painless-security.com>
Wed, 2 Aug 2017 20:22:41 +0000 (21:22 +0100)
src/moonshot-id.vala
src/moonshot-warning-dialog.vala

index 5c64933..82ce1ac 100644 (file)
@@ -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) {
index b26d609..3471377 100644 (file)
@@ -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