[gnote] Fix NotebookManager usage in statistics



commit 2a33a1081a7ea53f85d71c3bce158cdd05743420
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Mon Oct 21 16:38:50 2019 +0300

    Fix NotebookManager usage in statistics

 src/addins/statistics/statisticswidget.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/addins/statistics/statisticswidget.cpp b/src/addins/statistics/statisticswidget.cpp
index 31c551ce..60cb6622 100644
--- a/src/addins/statistics/statisticswidget.cpp
+++ b/src/addins/statistics/statisticswidget.cpp
@@ -22,6 +22,7 @@
 #include <gtkmm/treestore.h>
 
 #include "debug.hpp"
+#include "ignote.hpp"
 #include "itagmanager.hpp"
 #include "statisticswidget.hpp"
 #include "notebooks/notebookmanager.hpp"
@@ -74,9 +75,9 @@ private:
       build_stats();
       nm.signal_note_added.connect(sigc::mem_fun(*this, &StatisticsModel::on_note_list_changed));
       nm.signal_note_deleted.connect(sigc::mem_fun(*this, &StatisticsModel::on_note_list_changed));
-      gnote::notebooks::NotebookManager::obj().signal_note_added_to_notebook()
+      gnote::IGnote::obj().notebook_manager().signal_note_added_to_notebook()
         .connect(sigc::mem_fun(*this, &StatisticsModel::on_notebook_note_list_changed));
-      gnote::notebooks::NotebookManager::obj().signal_note_removed_from_notebook()
+      gnote::IGnote::obj().notebook_manager().signal_note_removed_from_notebook()
         .connect(sigc::mem_fun(*this, &StatisticsModel::on_notebook_note_list_changed));
     }
 
@@ -90,7 +91,7 @@ private:
       iter->set_value(0, stat);
       iter->set_value(1, TO_STRING(notes.size()));
 
-      Glib::RefPtr<Gtk::TreeModel> notebooks = gnote::notebooks::NotebookManager::obj().get_notebooks();
+      Glib::RefPtr<Gtk::TreeModel> notebooks = gnote::IGnote::obj().notebook_manager().get_notebooks();
       iter = append();
       stat = _("Total Notebooks:");
       iter->set_value(0, stat);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]