Fixed build errors on Ubuntu 12.04 (precise)

This commit is contained in:
Tony George 2013-10-12 13:17:20 +05:30
parent 050896984d
commit fbb5180ac1
2 changed files with 5 additions and 4 deletions

View File

@ -2321,7 +2321,8 @@ public class TimeShiftBackup : GLib.Object{
path = dir_path;
name = info.get_name();
description = "";
date = new DateTime.from_timeval_local(info.get_modification_time());
date = new DateTime.from_unix_utc(0);
tags = new Gee.ArrayList<string>();
exclude_list = new Gee.ArrayList<string>();

View File

@ -1047,7 +1047,7 @@ namespace Utility
string output;
try {
Process.spawn_command_line_sync("ps --ppid " + parentPid.to_string(), out output);
Process.spawn_command_line_sync("ps --ppid %d".printf(parentPid), out output);
}
catch(Error e){
log_error (e.message);
@ -1533,12 +1533,12 @@ namespace Utility
public int process_pause (Pid procID)
{
return execute_command_sync ("kill -STOP " + procID.to_string());
return execute_command_sync ("kill -STOP %d".printf(procID));
}
public int process_resume (Pid procID)
{
return execute_command_sync ("kill -CONT " + procID.to_string());
return execute_command_sync ("kill -CONT %d".printf(procID));
}
public int notify_send (string title, string message, int durationMillis, string urgency)