[gnote] Update gvfs addins
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Update gvfs addins
- Date: Sat, 12 Oct 2019 12:22:04 +0000 (UTC)
commit e8a48ae65cd8af00635b516db595db62f91aa744
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Oct 12 15:17:54 2019 +0300
Update gvfs addins
src/addins/gvfssyncservice/gvfssyncservice.desktop.in.in | 2 +-
src/addins/gvfssyncservice/gvfssyncserviceaddin.cpp | 9 +++++----
2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/addins/gvfssyncservice/gvfssyncservice.desktop.in.in
b/src/addins/gvfssyncservice/gvfssyncservice.desktop.in.in
index b31fb589..33718220 100644
--- a/src/addins/gvfssyncservice/gvfssyncservice.desktop.in.in
+++ b/src/addins/gvfssyncservice/gvfssyncservice.desktop.in.in
@@ -4,7 +4,7 @@ _Name=Online Directory Sync Service Plugin
_Description=Synchronize Gnote Notes to an online directory
_Authors=Aurimas Černius
Category=Synchronization
-Version=0.1
+Version=0.2
DefaultEnabled=true
Module=libgvfssyncservice
LibgnoteRelease=@LIBGNOTE_RELEASE@
diff --git a/src/addins/gvfssyncservice/gvfssyncserviceaddin.cpp
b/src/addins/gvfssyncservice/gvfssyncserviceaddin.cpp
index 78428c4f..dc2ff4e4 100644
--- a/src/addins/gvfssyncservice/gvfssyncserviceaddin.cpp
+++ b/src/addins/gvfssyncservice/gvfssyncserviceaddin.cpp
@@ -27,6 +27,7 @@
#include "debug.hpp"
#include "gvfssyncserviceaddin.hpp"
+#include "ignote.hpp"
#include "preferences.hpp"
#include "sharp/directory.hpp"
#include "sharp/files.hpp"
@@ -243,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::Preferences::obj().get_schema_settings(gnote::Preferences::SCHEMA_SYNC_GVFS)->set_string(gnote::Preferences::SYNC_GVFS_URI,
m_uri);
+
gnote::IGnote::obj().preferences().get_schema_settings(gnote::Preferences::SCHEMA_SYNC_GVFS)->set_string(gnote::Preferences::SYNC_GVFS_URI,
m_uri);
}
on_saved(success, error);
});
@@ -321,14 +322,14 @@ bool GvfsSyncServiceAddin::test_sync_directory(const Glib::RefPtr<Gio::File> & p
void GvfsSyncServiceAddin::reset_configuration()
{
- gnote::Preferences::obj().get_schema_settings(
+ gnote::IGnote::obj().preferences().get_schema_settings(
gnote::Preferences::SCHEMA_SYNC_GVFS)->set_string(gnote::Preferences::SYNC_GVFS_URI, "");
}
bool GvfsSyncServiceAddin::is_configured()
{
- return gnote::Preferences::obj().get_schema_settings(
+ return gnote::IGnote::obj().preferences().get_schema_settings(
gnote::Preferences::SCHEMA_SYNC_GVFS)->get_string(gnote::Preferences::SYNC_GVFS_URI) != "";
}
@@ -360,7 +361,7 @@ bool GvfsSyncServiceAddin::initialized()
bool GvfsSyncServiceAddin::get_config_settings(Glib::ustring & sync_path)
{
- sync_path = gnote::Preferences::obj().get_schema_settings(
+ sync_path = gnote::IGnote::obj().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]