[gnote] Update note of the day addin to new addin support



commit f0df048a25cda2b166fee7cacee87f43e61e160d
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Apr 14 16:39:11 2013 +0300

    Update note of the day addin to new addin support

 src/addins/noteoftheday/Makefile.am                |  9 ++++++++
 src/addins/noteoftheday/noteoftheday.desktop.in    |  9 ++++++++
 .../noteoftheday/noteofthedayapplicationaddin.cpp  | 25 ----------------------
 .../noteoftheday/noteofthedayapplicationaddin.hpp  |  6 ------
 4 files changed, 18 insertions(+), 31 deletions(-)
---
diff --git a/src/addins/noteoftheday/Makefile.am b/src/addins/noteoftheday/Makefile.am
index 2379bc7..3d8e737 100644
--- a/src/addins/noteoftheday/Makefile.am
+++ b/src/addins/noteoftheday/Makefile.am
@@ -1,8 +1,14 @@
 
 include $(builddir)/../addins.mk
 
+ INTLTOOL_DESKTOP_RULE@
+
+desktop_in_files = noteoftheday.desktop.in
+desktop_files    = $(desktop_in_files:.desktop.in=.desktop)
+
 addinsdir = $(ADDINSDIR)
 addins_LTLIBRARIES = noteoftheday.la
+addins_DATA = $(desktop_files)
 
 noteoftheday_la_SOURCES = \
        noteoftheday.hpp \
@@ -13,3 +19,6 @@ noteoftheday_la_SOURCES = \
        noteofthedaypreferences.cpp \
        noteofthedaypreferencesfactory.hpp \
        $(NULL)
+
+EXTRA_DIST = $(desktop_in_files)
+DISTCLEANFILES = $(desktop_files)
diff --git a/src/addins/noteoftheday/noteoftheday.desktop.in b/src/addins/noteoftheday/noteoftheday.desktop.in
new file mode 100644
index 0000000..47d4f13
--- /dev/null
+++ b/src/addins/noteoftheday/noteoftheday.desktop.in
@@ -0,0 +1,9 @@
+[AddinInfo]
+Id=NoteOfTheDayAddin
+_Name=Note of the Day
+_Description=Automatically creates a "Today" note for easily jotting down daily thoughts
+_Authors=Debarshi Ray and the Tomboy Project
+Category=Tools
+Version=0.2
+DefaultEnabled=false
+Module=noteoftheday
diff --git a/src/addins/noteoftheday/noteofthedayapplicationaddin.cpp 
b/src/addins/noteoftheday/noteofthedayapplicationaddin.cpp
index 248b2c2..29245c0 100644
--- a/src/addins/noteoftheday/noteofthedayapplicationaddin.cpp
+++ b/src/addins/noteoftheday/noteofthedayapplicationaddin.cpp
@@ -35,31 +35,6 @@ NoteOfTheDayModule::NoteOfTheDayModule()
   ADD_INTERFACE_IMPL(NoteOfTheDayPreferencesFactory);
   enabled(false);
 }
-const char * NoteOfTheDayModule::id() const
-{
-  return "NoteOfTheDayAddin";
-}
-const char * NoteOfTheDayModule::name() const
-{
-  return _("Note of the Day");
-}
-const char * NoteOfTheDayModule::description() const
-{
-  return _("Automatically creates a \"Today\" note for easily "
-           "jotting down daily thoughts");
-}
-const char * NoteOfTheDayModule::authors() const
-{
-  return _("Debarshi Ray and the Tomboy Project");
-}
-int NoteOfTheDayModule::category() const
-{
-  return gnote::ADDIN_CATEGORY_TOOLS;
-}
-const char * NoteOfTheDayModule::version() const
-{
-  return "0.1";
-}
 
 const char * NoteOfTheDayApplicationAddin::IFACE_NAME
                = "gnote::ApplicationAddin";
diff --git a/src/addins/noteoftheday/noteofthedayapplicationaddin.hpp 
b/src/addins/noteoftheday/noteofthedayapplicationaddin.hpp
index 5308364..02fb311 100644
--- a/src/addins/noteoftheday/noteofthedayapplicationaddin.hpp
+++ b/src/addins/noteoftheday/noteofthedayapplicationaddin.hpp
@@ -39,12 +39,6 @@ class NoteOfTheDayModule
 {
 public:
   NoteOfTheDayModule();
-  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;
 };
 
 class NoteOfTheDayApplicationAddin


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