aboutsummaryrefslogtreecommitdiff
path: root/libdino
diff options
context:
space:
mode:
authorhrxi <hrrrxi@gmail.com>2019-06-01 17:09:26 +0200
committerhrxi <hrrrxi@gmail.com>2019-06-01 17:13:33 +0200
commitc245f7e34ae63c83c59996109208fafa971b9dd4 (patch)
tree6e37ad74210b95694883bc0825d3cea3fed147f9 /libdino
parent6a1f057de2d446e6b9c21f377cf0ec79930369c0 (diff)
downloaddino-c245f7e34ae63c83c59996109208fafa971b9dd4.tar.gz
dino-c245f7e34ae63c83c59996109208fafa971b9dd4.zip
Fix a couple of typos and double imports
Diffstat (limited to 'libdino')
-rw-r--r--libdino/src/service/file_manager.vala12
-rw-r--r--libdino/src/service/stream_interactor.vala2
2 files changed, 7 insertions, 7 deletions
diff --git a/libdino/src/service/file_manager.vala b/libdino/src/service/file_manager.vala
index 4763d721..6f8ccee4 100644
--- a/libdino/src/service/file_manager.vala
+++ b/libdino/src/service/file_manager.vala
@@ -16,7 +16,7 @@ public class FileManager : StreamInteractionModule, Object {
private StreamInteractor stream_interactor;
private Database db;
private Gee.List<FileSender> file_senders = new ArrayList<FileSender>();
- public Gee.List<IncommingFileProcessor> incomming_processors = new ArrayList<IncommingFileProcessor>();
+ public Gee.List<IncomingFileProcessor> incoming_processors = new ArrayList<IncomingFileProcessor>();
private Gee.List<OutgoingFileProcessor> outgoing_processors = new ArrayList<OutgoingFileProcessor>();
public static void start(StreamInteractor stream_interactor, Database db) {
@@ -116,7 +116,7 @@ public class FileManager : StreamInteractionModule, Object {
}
public void add_provider(FileProvider file_provider) {
- file_provider.file_incoming.connect((file_transfer, conversation) => { handle_incomming_file.begin(file_provider, file_transfer, conversation); });
+ file_provider.file_incoming.connect((file_transfer, conversation) => { handle_incoming_file.begin(file_provider, file_transfer, conversation); });
}
public void add_sender(FileSender file_sender) {
@@ -126,8 +126,8 @@ public class FileManager : StreamInteractionModule, Object {
});
}
- public void add_incomming_processor(IncommingFileProcessor processor) {
- incomming_processors.add(processor);
+ public void add_incoming_processor(IncomingFileProcessor processor) {
+ incoming_processors.add(processor);
}
public void add_outgoing_processor(OutgoingFileProcessor processor) {
@@ -140,7 +140,7 @@ public class FileManager : StreamInteractionModule, Object {
return file_transfer.direction == FileTransfer.DIRECTION_SENT || in_roster;
}
- private async void handle_incomming_file(FileProvider file_provider, FileTransfer file_transfer, Conversation conversation) {
+ private async void handle_incoming_file(FileProvider file_provider, FileTransfer file_transfer, Conversation conversation) {
if (!is_sender_trustworthy(file_transfer, conversation)) return;
if (file_transfer.size == -1) {
@@ -192,7 +192,7 @@ public interface FileSender : Object {
public abstract void send_file(Conversation conversation, FileTransfer file_transfer);
}
-public interface IncommingFileProcessor : Object {
+public interface IncomingFileProcessor : Object {
public abstract bool can_process(FileTransfer file_transfer);
public abstract void process(FileTransfer file_transfer);
}
diff --git a/libdino/src/service/stream_interactor.vala b/libdino/src/service/stream_interactor.vala
index 2c8e1adc..ab4a4a93 100644
--- a/libdino/src/service/stream_interactor.vala
+++ b/libdino/src/service/stream_interactor.vala
@@ -77,7 +77,7 @@ public class ModuleIdentity<T> : Object {
}
public bool matches(StreamInteractionModule module) {
- return module.id== id;
+ return module.id == id;
}
}