[gnote] Do not use singleton IGnote in watchers
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Do not use singleton IGnote in watchers
- Date: Sun, 8 Dec 2019 21:03:55 +0000 (UTC)
commit 267523e81dea042df59b5c897dd10d05ae5ed64b
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Dec 8 18:49:53 2019 +0200
Do not use singleton IGnote in watchers
src/watchers.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/watchers.cpp b/src/watchers.cpp
index 8f68e3ba..af201337 100644
--- a/src/watchers.cpp
+++ b/src/watchers.cpp
@@ -291,7 +291,7 @@ namespace gnote {
void NoteSpellChecker::on_note_opened ()
{
- Glib::RefPtr<Gio::Settings> settings = IGnote::obj().preferences()
+ Glib::RefPtr<Gio::Settings> settings = ignote().preferences()
.get_schema_settings(Preferences::SCHEMA_GNOTE);
settings->signal_changed()
.connect(sigc::mem_fun(*this, &NoteSpellChecker::on_enable_spellcheck_changed));
@@ -384,8 +384,7 @@ namespace gnote {
if (key != Preferences::ENABLE_SPELLCHECKING) {
return;
}
- bool value = IGnote::obj().preferences()
- .get_schema_settings(Preferences::SCHEMA_GNOTE)->get_boolean(key);
+ bool value = ignote().preferences().get_schema_settings(Preferences::SCHEMA_GNOTE)->get_boolean(key);
if (value) {
attach ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]