[gnote] Update tableofcontents addin



commit 1659be1072fc90f9426975aabb15d269f3bd7b52
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Sep 29 15:52:21 2019 +0300

    Update tableofcontents addin

 src/addins/tableofcontents/tableofcontents.desktop.in.in | 2 +-
 src/addins/tableofcontents/tableofcontentsmenuitem.cpp   | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/addins/tableofcontents/tableofcontents.desktop.in.in 
b/src/addins/tableofcontents/tableofcontents.desktop.in.in
index 9e7394e1..06a2d5fa 100644
--- a/src/addins/tableofcontents/tableofcontents.desktop.in.in
+++ b/src/addins/tableofcontents/tableofcontents.desktop.in.in
@@ -4,7 +4,7 @@ _Name=Table of Contents
 _Description=Navigate long structured notes. Set section and subsection headings in your note, and the Table 
of Contents will show in a menu.
 _Authors=Luc Pionchon
 Category=Tools
-Version=1.3.0
+Version=1.3.1
 DefaultEnabled=false
 Module=libtableofcontents
 _Copyright=© 2013 Luc Pionchon
diff --git a/src/addins/tableofcontents/tableofcontentsmenuitem.cpp 
b/src/addins/tableofcontents/tableofcontentsmenuitem.cpp
index fcdf04f9..7bde0f0c 100644
--- a/src/addins/tableofcontents/tableofcontentsmenuitem.cpp
+++ b/src/addins/tableofcontents/tableofcontentsmenuitem.cpp
@@ -2,7 +2,7 @@
  * "Table of Contents" is a Note add-in for Gnote.
  *  It lists note's table of contents in a menu.
  *
- * Copyright (C) 2015,2017 Aurimas Cernius <aurisc4 gmail com>
+ * Copyright (C) 2015,2017,2019 Aurimas Cernius <aurisc4 gmail com>
  * Copyright (C) 2013 Luc Pionchon <pionchon luc gmail com>
  *
  * This program is free software: you can redistribute it and/or modify
@@ -26,6 +26,7 @@
 #include <gtkmm/stock.h>
 
 #include "iconmanager.hpp"
+#include "ignote.hpp"
 #include "notewindow.hpp"
 
 #include "tableofcontentsmenuitem.hpp"
@@ -58,7 +59,7 @@ TableofcontentsMenuItem::TableofcontentsMenuItem (
   set_use_underline (false); //we don't want potential '_' in the heading to be used as mnemonic
 
   if (heading_level == Heading::Title) {
-    set_image(*manage(new Gtk::Image(gnote::IconManager::obj().get_icon(gnote::IconManager::NOTE, 16))));
+    set_image(*manage(new Gtk::Image(gnote::IGnote::obj().icon_manager().get_icon(gnote::IconManager::NOTE, 
16))));
     Gtk::Label *label = (Gtk::Label*)get_child();
     label->set_markup("<b>" + heading + "</b>");
   }


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