[gnote] Do not use static IGnote in notedirectorywatcher
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Do not use static IGnote in notedirectorywatcher
- Date: Sun, 27 Oct 2019 15:46:29 +0000 (UTC)
commit 571b000b262559c5db1e63713eac6bd0bc96f756
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Oct 27 17:20:30 2019 +0200
Do not use static IGnote in notedirectorywatcher
.../notedirectorywatcher/notedirectorywatcherapplicationaddin.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/addins/notedirectorywatcher/notedirectorywatcherapplicationaddin.cpp
b/src/addins/notedirectorywatcher/notedirectorywatcherapplicationaddin.cpp
index 5754c3e0..fcb471e9 100644
--- a/src/addins/notedirectorywatcher/notedirectorywatcherapplicationaddin.cpp
+++ b/src/addins/notedirectorywatcher/notedirectorywatcherapplicationaddin.cpp
@@ -62,7 +62,7 @@ void NoteDirectoryWatcherApplicationAddin::initialize()
m_signal_changed_cid = m_file_system_watcher->signal_changed()
.connect(sigc::mem_fun(*this, &NoteDirectoryWatcherApplicationAddin::handle_file_system_change_event));
- Glib::RefPtr<Gio::Settings> settings =
gnote::IGnote::obj().preferences().get_schema_settings(SCHEMA_NOTE_DIRECTORY_WATCHER);
+ Glib::RefPtr<Gio::Settings> settings =
ignote().preferences().get_schema_settings(SCHEMA_NOTE_DIRECTORY_WATCHER);
m_check_interval = settings->get_int(CHECK_INTERVAL);
sanitize_check_interval(settings);
m_signal_settings_changed_cid = settings->signal_changed()
@@ -296,7 +296,7 @@ Glib::ustring NoteDirectoryWatcherApplicationAddin::make_uri(const Glib::ustring
void NoteDirectoryWatcherApplicationAddin::on_settings_changed(const Glib::ustring & key)
{
if(key == CHECK_INTERVAL) {
- Glib::RefPtr<Gio::Settings> settings =
gnote::IGnote::obj().preferences().get_schema_settings(SCHEMA_NOTE_DIRECTORY_WATCHER);
+ Glib::RefPtr<Gio::Settings> settings =
ignote().preferences().get_schema_settings(SCHEMA_NOTE_DIRECTORY_WATCHER);
m_check_interval = settings->get_int(key);
sanitize_check_interval(settings);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]