[gnote] Do not use singleton IGnote in NotebookApplicationAddin
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Do not use singleton IGnote in NotebookApplicationAddin
- Date: Mon, 9 Dec 2019 20:42:09 +0000 (UTC)
commit 712ceff711430e85996a06cbb1ce232d578b4712
Author: Aurimas Černius <aurisc4 gmail com>
Date: Mon Dec 9 22:41:54 2019 +0200
Do not use singleton IGnote in NotebookApplicationAddin
src/notebooks/notebookapplicationaddin.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/notebooks/notebookapplicationaddin.cpp b/src/notebooks/notebookapplicationaddin.cpp
index 29e7eed2..513c89d3 100644
--- a/src/notebooks/notebookapplicationaddin.cpp
+++ b/src/notebooks/notebookapplicationaddin.cpp
@@ -57,7 +57,7 @@ namespace gnote {
void NotebookApplicationAddin::initialize ()
{
- IActionManager & am(IGnote::obj().action_manager());
+ IActionManager & am(ignote().action_manager());
NoteManager & nm(note_manager());
@@ -100,7 +100,7 @@ namespace gnote {
void NotebookApplicationAddin::on_tag_added(const NoteBase & note, const Tag::Ptr& tag)
{
- NotebookManager & manager = IGnote::obj().notebook_manager();
+ NotebookManager & manager = ignote().notebook_manager();
if (manager.is_adding_notebook()) {
return;
}
@@ -133,7 +133,7 @@ namespace gnote {
Glib::ustring normalizedNotebookName =
sharp::string_substring(normalizedTagName, megaPrefix.size());
- NotebookManager & manager = IGnote::obj().notebook_manager();
+ NotebookManager & manager = ignote().notebook_manager();
Notebook::Ptr notebook = manager.get_notebook(normalizedNotebookName);
if (!notebook) {
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]