[gnote] Make print notes work on disabled note
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Make print notes work on disabled note
- Date: Sat, 7 Sep 2013 19:22:07 +0000 (UTC)
commit 3288125073ff554205c5b8cf42f583786264401f
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Sep 7 22:21:18 2013 +0300
Make print notes work on disabled note
src/addins/printnotes/printnotes.desktop.in | 2 +-
src/addins/printnotes/printnotesnoteaddin.cpp | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/addins/printnotes/printnotes.desktop.in b/src/addins/printnotes/printnotes.desktop.in
index cc4ed35..e57de45 100644
--- a/src/addins/printnotes/printnotes.desktop.in
+++ b/src/addins/printnotes/printnotes.desktop.in
@@ -4,6 +4,6 @@ _Name=Printing Support
_Description=Allows you to print a note.
_Authors=Hubert Figuiere and the Tomboy Project
Category=DesktopIntegration
-Version=0.5
+Version=0.6
DefaultEnabled=true
Module=printnotes
diff --git a/src/addins/printnotes/printnotesnoteaddin.cpp b/src/addins/printnotes/printnotesnoteaddin.cpp
index d941722..e3b2c0d 100644
--- a/src/addins/printnotes/printnotesnoteaddin.cpp
+++ b/src/addins/printnotes/printnotesnoteaddin.cpp
@@ -39,7 +39,7 @@ namespace printnotes {
namespace {
class PrintNotesAction
- : public Gtk::Action
+ : public gnote::NoteWindow::NonModifyingAction
{
public:
static Glib::RefPtr<Gtk::Action> create(gnote::NoteWindow *note_window)
@@ -56,7 +56,8 @@ namespace printnotes {
}
private:
PrintNotesAction(gnote::NoteWindow *note_window)
- : Gtk::Action("PrintAction", Gtk::Stock::PRINT, _("Print"), _("Print note"))
+ : gnote::NoteWindow::NonModifyingAction("PrintAction", Gtk::Stock::PRINT,
+ _("Print"), _("Print note"))
, m_note_window(note_window)
{}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]