[gnote] Update print addin to new addin support
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Update print addin to new addin support
- Date: Sun, 14 Apr 2013 15:23:53 +0000 (UTC)
commit a52fb330355834c31dec858f6fc335e7eb6b5dc8
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Apr 14 16:41:59 2013 +0300
Update print addin to new addin support
src/addins/printnotes/Makefile.am | 9 +++++++++
src/addins/printnotes/printnotes.desktop.in | 9 +++++++++
src/addins/printnotes/printnotesnoteaddin.cpp | 26 +-------------------------
src/addins/printnotes/printnotesnoteaddin.hpp | 8 +-------
4 files changed, 20 insertions(+), 32 deletions(-)
---
diff --git a/src/addins/printnotes/Makefile.am b/src/addins/printnotes/Makefile.am
index 9816796..050f72d 100644
--- a/src/addins/printnotes/Makefile.am
+++ b/src/addins/printnotes/Makefile.am
@@ -1,9 +1,18 @@
include $(builddir)/../addins.mk
+ INTLTOOL_DESKTOP_RULE@
+
+desktop_in_files = printnotes.desktop.in
+desktop_files = $(desktop_in_files:.desktop.in=.desktop)
+
addinsdir = $(ADDINSDIR)
addins_LTLIBRARIES = printnotes.la
+addins_DATA = $(desktop_files)
printnotes_la_SOURCES = printnotesnoteaddin.hpp printnotesnoteaddin.cpp\
$(NULL)
+
+EXTRA_DIST = $(desktop_in_files)
+DISTCLEANFILES = $(desktop_files)
diff --git a/src/addins/printnotes/printnotes.desktop.in b/src/addins/printnotes/printnotes.desktop.in
new file mode 100644
index 0000000..cc4ed35
--- /dev/null
+++ b/src/addins/printnotes/printnotes.desktop.in
@@ -0,0 +1,9 @@
+[AddinInfo]
+Id=PrintNotesAddin
+_Name=Printing Support
+_Description=Allows you to print a note.
+_Authors=Hubert Figuiere and the Tomboy Project
+Category=DesktopIntegration
+Version=0.5
+DefaultEnabled=true
+Module=printnotes
diff --git a/src/addins/printnotes/printnotesnoteaddin.cpp b/src/addins/printnotes/printnotesnoteaddin.cpp
index 43a7789..13c26b5 100644
--- a/src/addins/printnotes/printnotesnoteaddin.cpp
+++ b/src/addins/printnotes/printnotesnoteaddin.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2010-2012 Aurimas Cernius
+ * Copyright (C) 2010-2013 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* This program is free software: you can redistribute it and/or modify
@@ -41,30 +41,6 @@ namespace printnotes {
{
ADD_INTERFACE_IMPL(PrintNotesNoteAddin);
}
- const char * PrintNotesModule::id() const
- {
- return "PrintNotesAddin";
- }
- const char * PrintNotesModule::name() const
- {
- return _("Printing Support");
- }
- const char * PrintNotesModule::description() const
- {
- return _("Allows you to print a note.");
- }
- const char * PrintNotesModule::authors() const
- {
- return _("Hubert Figuiere and the Tomboy Project");
- }
- int PrintNotesModule::category() const
- {
- return gnote::ADDIN_CATEGORY_DESKTOP_INTEGRATION;
- }
- const char * PrintNotesModule::version() const
- {
- return "0.4";
- }
void PrintNotesNoteAddin::initialize()
{
diff --git a/src/addins/printnotes/printnotesnoteaddin.hpp b/src/addins/printnotes/printnotesnoteaddin.hpp
index 11f5f2f..774faf8 100644
--- a/src/addins/printnotes/printnotesnoteaddin.hpp
+++ b/src/addins/printnotes/printnotesnoteaddin.hpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2010,2012 Aurimas Cernius
+ * Copyright (C) 2010,2012-2013 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* This program is free software: you can redistribute it and/or modify
@@ -42,12 +42,6 @@ class PrintNotesModule
{
public:
PrintNotesModule();
- virtual const char * id() const;
- virtual const char * name() const;
- virtual const char * description() const;
- virtual const char * authors() const;
- virtual int category() const;
- virtual const char * version() const;
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]