[geary] Initialize opening_monitor in local folders
- From: Charles Lindsay <clindsay src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary] Initialize opening_monitor in local folders
- Date: Wed, 12 Mar 2014 19:15:48 +0000 (UTC)
commit ccfd1f036071e77bf8278d3c171a89c2a5bbde10
Author: Charles Lindsay <chaz yorba org>
Date: Wed Mar 12 12:14:01 2014 -0700
Initialize opening_monitor in local folders
Closes: bgo #725850
.../abstract/geary-abstract-local-folder.vala | 4 ++++
src/engine/api/geary-search-folder.vala | 2 ++
src/engine/imap-db/outbox/smtp-outbox-folder.vala | 2 ++
3 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/engine/abstract/geary-abstract-local-folder.vala
b/src/engine/abstract/geary-abstract-local-folder.vala
index 7f831ee..bbc64c9 100644
--- a/src/engine/abstract/geary-abstract-local-folder.vala
+++ b/src/engine/abstract/geary-abstract-local-folder.vala
@@ -10,6 +10,10 @@
public abstract class Geary.AbstractLocalFolder : Geary.AbstractFolder {
private int open_count = 0;
+ public AbstractLocalFolder() {
+ opening_monitor = new Geary.SimpleProgressMonitor(Geary.ProgressType.ACTIVITY);
+ }
+
public override Geary.Folder.OpenState get_open_state() {
return open_count > 0 ? Geary.Folder.OpenState.LOCAL : Geary.Folder.OpenState.CLOSED;
}
diff --git a/src/engine/api/geary-search-folder.vala b/src/engine/api/geary-search-folder.vala
index b8f32a9..518b409 100644
--- a/src/engine/api/geary-search-folder.vala
+++ b/src/engine/api/geary-search-folder.vala
@@ -66,6 +66,8 @@ public class Geary.SearchFolder : Geary.AbstractLocalFolder, Geary.FolderSupport
public signal void search_query_changed(string? query);
public SearchFolder(Account account) {
+ base();
+
_account = account;
account.folders_available_unavailable.connect(on_folders_available_unavailable);
diff --git a/src/engine/imap-db/outbox/smtp-outbox-folder.vala
b/src/engine/imap-db/outbox/smtp-outbox-folder.vala
index f791242..9499aff 100644
--- a/src/engine/imap-db/outbox/smtp-outbox-folder.vala
+++ b/src/engine/imap-db/outbox/smtp-outbox-folder.vala
@@ -70,6 +70,8 @@ private class Geary.SmtpOutboxFolder : Geary.AbstractLocalFolder, Geary.FolderSu
// Requires the Database from the get-go because it runs a background task that access it
// whether open or not
public SmtpOutboxFolder(ImapDB.Database db, Account account, Geary.ProgressMonitor sending_monitor) {
+ base();
+
this.db = db;
_account = account;
this.sending_monitor = sending_monitor;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]