[gnote] Remove use of static IGnote from filesystem sync service
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove use of static IGnote from filesystem sync service
- Date: Sun, 27 Oct 2019 15:46:04 +0000 (UTC)
commit 96c7c41fc2ed1daee82bd6d3bab7733e2b7aa923
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Oct 27 17:16:22 2019 +0200
Remove use of static IGnote from filesystem sync service
src/addins/filesystemsyncservice/filesystemsyncserviceaddin.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/addins/filesystemsyncservice/filesystemsyncserviceaddin.cpp
b/src/addins/filesystemsyncservice/filesystemsyncserviceaddin.cpp
index 7607a5d0..d111cb20 100644
--- a/src/addins/filesystemsyncservice/filesystemsyncserviceaddin.cpp
+++ b/src/addins/filesystemsyncservice/filesystemsyncserviceaddin.cpp
@@ -183,7 +183,7 @@ bool FileSystemSyncServiceAddin::save_configuration(const sigc::slot<void, bool,
m_path = syncPath;
// TODO: Try to create and delete a file. If it fails, this should fail
- gnote::IGnote::obj().preferences().get_schema_settings(
+ ignote().preferences().get_schema_settings(
gnote::Preferences::SCHEMA_SYNC)->set_string(gnote::Preferences::SYNC_LOCAL_PATH, m_path);
on_saved(true, "");
@@ -193,14 +193,14 @@ bool FileSystemSyncServiceAddin::save_configuration(const sigc::slot<void, bool,
void FileSystemSyncServiceAddin::reset_configuration()
{
- gnote::IGnote::obj().preferences().get_schema_settings(
+ ignote().preferences().get_schema_settings(
gnote::Preferences::SCHEMA_SYNC)->set_string(gnote::Preferences::SYNC_LOCAL_PATH, "");
}
bool FileSystemSyncServiceAddin::is_configured()
{
- return gnote::IGnote::obj().preferences().get_schema_settings(
+ return ignote().preferences().get_schema_settings(
gnote::Preferences::SCHEMA_SYNC)->get_string(gnote::Preferences::SYNC_LOCAL_PATH) != "";
}
@@ -232,7 +232,7 @@ bool FileSystemSyncServiceAddin::initialized()
bool FileSystemSyncServiceAddin::get_config_settings(Glib::ustring & syncPath)
{
- syncPath = gnote::IGnote::obj().preferences().get_schema_settings(
+ syncPath = ignote().preferences().get_schema_settings(
gnote::Preferences::SCHEMA_SYNC)->get_string(gnote::Preferences::SYNC_LOCAL_PATH);
return syncPath != "";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]