[gnote] Make export to html work on disabled note



commit f850ae9d09bc71df2d9cb1e0ef98de838d8a4866
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sat Sep 7 22:20:19 2013 +0300

    Make export to html work on disabled note

 src/addins/exporttohtml/exporttohtml.desktop.in   |    2 +-
 src/addins/exporttohtml/exporttohtmlnoteaddin.cpp |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/addins/exporttohtml/exporttohtml.desktop.in b/src/addins/exporttohtml/exporttohtml.desktop.in
index 634e881..ec1c21f 100644
--- a/src/addins/exporttohtml/exporttohtml.desktop.in
+++ b/src/addins/exporttohtml/exporttohtml.desktop.in
@@ -4,6 +4,6 @@ _Name=Export to HTML
 _Description=Exports individual notes to HTML.
 _Authors=Hubert Figuiere and the Tomboy Project
 Category=Tools
-Version=0.2
+Version=0.3
 DefaultEnabled=false
 Module=exporttohtml
diff --git a/src/addins/exporttohtml/exporttohtmlnoteaddin.cpp 
b/src/addins/exporttohtml/exporttohtmlnoteaddin.cpp
index 4d50579..6f3b5fd 100644
--- a/src/addins/exporttohtml/exporttohtmlnoteaddin.cpp
+++ b/src/addins/exporttohtml/exporttohtmlnoteaddin.cpp
@@ -71,8 +71,9 @@ void ExportToHtmlNoteAddin::shutdown()
 
 void ExportToHtmlNoteAddin::on_note_opened()
 {
-  Glib::RefPtr<Gtk::Action> action = Gtk::Action::create("ExportToHtmlAction", _("Export to HTML"),
-                                                         _("Export note to HTML"));
+  Glib::RefPtr<gnote::NoteWindow::NonModifyingAction> action =
+    gnote::NoteWindow::NonModifyingAction::create("ExportToHtmlAction", _("Export to HTML"),
+                                                  _("Export note to HTML"));
   action->signal_activate().connect(
     sigc::mem_fun(*this, &ExportToHtmlNoteAddin::export_button_clicked));
   add_note_action(action, 200);


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