[gnote] Remove use of static IGnote from GVFS sync service
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove use of static IGnote from GVFS sync service
- Date: Sun, 27 Oct 2019 15:46:09 +0000 (UTC)
commit e08b1e0b94d05bb9010722308cf6dd9b18596da3
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Oct 27 17:16:49 2019 +0200
Remove use of static IGnote from GVFS sync service
src/addins/gvfssyncservice/gvfssyncserviceaddin.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/addins/gvfssyncservice/gvfssyncserviceaddin.cpp
b/src/addins/gvfssyncservice/gvfssyncserviceaddin.cpp
index dc2ff4e4..ab88f94a 100644
--- a/src/addins/gvfssyncservice/gvfssyncserviceaddin.cpp
+++ b/src/addins/gvfssyncservice/gvfssyncserviceaddin.cpp
@@ -244,7 +244,7 @@ bool GvfsSyncServiceAddin::save_configuration(const sigc::slot<void, bool, Glib:
unmount_async([this, sync_uri, on_saved, success, error] {
if(success) {
m_uri = sync_uri;
-
gnote::IGnote::obj().preferences().get_schema_settings(gnote::Preferences::SCHEMA_SYNC_GVFS)->set_string(gnote::Preferences::SYNC_GVFS_URI,
m_uri);
+
ignote().preferences().get_schema_settings(gnote::Preferences::SCHEMA_SYNC_GVFS)->set_string(gnote::Preferences::SYNC_GVFS_URI,
m_uri);
}
on_saved(success, error);
});
@@ -322,14 +322,14 @@ bool GvfsSyncServiceAddin::test_sync_directory(const Glib::RefPtr<Gio::File> & p
void GvfsSyncServiceAddin::reset_configuration()
{
- gnote::IGnote::obj().preferences().get_schema_settings(
+ ignote().preferences().get_schema_settings(
gnote::Preferences::SCHEMA_SYNC_GVFS)->set_string(gnote::Preferences::SYNC_GVFS_URI, "");
}
bool GvfsSyncServiceAddin::is_configured()
{
- return gnote::IGnote::obj().preferences().get_schema_settings(
+ return ignote().preferences().get_schema_settings(
gnote::Preferences::SCHEMA_SYNC_GVFS)->get_string(gnote::Preferences::SYNC_GVFS_URI) != "";
}
@@ -361,7 +361,7 @@ bool GvfsSyncServiceAddin::initialized()
bool GvfsSyncServiceAddin::get_config_settings(Glib::ustring & sync_path)
{
- sync_path = gnote::IGnote::obj().preferences().get_schema_settings(
+ sync_path = ignote().preferences().get_schema_settings(
gnote::Preferences::SCHEMA_SYNC_GVFS)->get_string(gnote::Preferences::SYNC_GVFS_URI);
return sync_path != "";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]