[gnote] Make backlinks work on disabled note



commit 8756726a34fa3a3c0128638dd26b43f75f236b11
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sat Sep 7 22:17:17 2013 +0300

    Make backlinks work on disabled note

 src/addins/backlinks/backlinkmenuitem.cpp |    5 +++--
 src/addins/backlinks/backlinkmenuitem.hpp |    3 ++-
 src/addins/backlinks/backlinks.desktop.in |    2 +-
 3 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/addins/backlinks/backlinkmenuitem.cpp b/src/addins/backlinks/backlinkmenuitem.cpp
index de10985..6cc16aa 100644
--- a/src/addins/backlinks/backlinkmenuitem.cpp
+++ b/src/addins/backlinks/backlinkmenuitem.cpp
@@ -36,8 +36,9 @@ Glib::RefPtr<Gtk::Action> BacklinkAction::create(const sigc::slot<void, Gtk::Men
 }
 
 BacklinkAction::BacklinkAction(const sigc::slot<void, Gtk::Menu*> & slot)
-  : Gtk::Action("BacklinkAction", Gtk::Stock::JUMP_TO,
-                _("What links here?"), _("Which notes have links to here?"))
+  : gnote::NoteWindow::NonModifyingAction("BacklinkAction", Gtk::Stock::JUMP_TO,
+                                          _("What links here?"),
+                                          _("Which notes have links to here?"))
   , m_update_menu_slot(slot)
 {
 }
diff --git a/src/addins/backlinks/backlinkmenuitem.hpp b/src/addins/backlinks/backlinkmenuitem.hpp
index d128a4f..ea1fae4 100644
--- a/src/addins/backlinks/backlinkmenuitem.hpp
+++ b/src/addins/backlinks/backlinkmenuitem.hpp
@@ -27,11 +27,12 @@
 
 #include "base/macros.hpp"
 #include "note.hpp"
+#include "notewindow.hpp"
 
 namespace backlinks {
 
 class BacklinkAction
-  : public Gtk::Action
+  : public gnote::NoteWindow::NonModifyingAction
 {
 public:
   static Glib::RefPtr<Gtk::Action> create(const sigc::slot<void, Gtk::Menu*> & slot);
diff --git a/src/addins/backlinks/backlinks.desktop.in b/src/addins/backlinks/backlinks.desktop.in
index 108c004..159fd1c 100644
--- a/src/addins/backlinks/backlinks.desktop.in
+++ b/src/addins/backlinks/backlinks.desktop.in
@@ -4,6 +4,6 @@ _Name=Backlinks
 _Description=See which notes link to the one you're currently viewing.
 _Authors=Hubert Figuiere and Tomboy Project
 Category=Tools
-Version=0.2
+Version=0.3
 DefaultEnabled=true
 Module=backlinks


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