[gnote] Update statistics addin to new addin support
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Update statistics addin to new addin support
- Date: Sun, 14 Apr 2013 15:24:03 +0000 (UTC)
commit 0e62565899fe7b85ba2ca9419e32c8518fcdeeb9
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Apr 14 16:47:28 2013 +0300
Update statistics addin to new addin support
src/addins/statistics/Makefile.am | 8 ++++++
src/addins/statistics/statistics.desktop.in | 9 +++++++
.../statistics/statisticsapplicationaddin.cpp | 29 ----------------------
.../statistics/statisticsapplicationaddin.hpp | 6 -----
4 files changed, 17 insertions(+), 35 deletions(-)
---
diff --git a/src/addins/statistics/Makefile.am b/src/addins/statistics/Makefile.am
index 62377bf..ea4bd5d 100644
--- a/src/addins/statistics/Makefile.am
+++ b/src/addins/statistics/Makefile.am
@@ -1,12 +1,20 @@
include $(builddir)/../addins.mk
+ INTLTOOL_DESKTOP_RULE@
+
+desktop_in_files = statistics.desktop.in
+desktop_files = $(desktop_in_files:.desktop.in=.desktop)
+
addinsdir = $(ADDINSDIR)
addins_LTLIBRARIES = statistics.la
+addins_DATA = $(desktop_files)
statistics_la_SOURCES = \
statisticsapplicationaddin.hpp statisticsapplicationaddin.cpp \
statisticswidget.hpp statisticswidget.cpp \
$(NULL)
+EXTRA_DIST = $(desktop_in_files)
+DISTCLEANFILES = $(desktop_files)
diff --git a/src/addins/statistics/statistics.desktop.in b/src/addins/statistics/statistics.desktop.in
new file mode 100644
index 0000000..334c50e
--- /dev/null
+++ b/src/addins/statistics/statistics.desktop.in
@@ -0,0 +1,9 @@
+[AddinInfo]
+Id=Statistics
+_Name=Statistics
+_Description=Show various statistics about notes.
+_Authors=Aurimas Černius
+Category=Tools
+Version=0.2
+DefaultEnabled=false
+Module=statistics
diff --git a/src/addins/statistics/statisticsapplicationaddin.cpp
b/src/addins/statistics/statisticsapplicationaddin.cpp
index 229993c..d56f432 100644
--- a/src/addins/statistics/statisticsapplicationaddin.cpp
+++ b/src/addins/statistics/statisticsapplicationaddin.cpp
@@ -32,35 +32,6 @@ StatisticsModule::StatisticsModule()
ADD_INTERFACE_IMPL(StatisticsApplicationAddin);
}
-const char * StatisticsModule::id() const
-{
- return "Statistics";
-}
-
-const char * StatisticsModule::name() const
-{
- return _("Statistics");
-}
-
-const char * StatisticsModule::description() const
-{
- return _("Show various statistics about notes");
-}
-
-const char * StatisticsModule::authors() const
-{
- return _("Aurimas Černius");
-}
-
-int StatisticsModule::category() const
-{
- return gnote::ADDIN_CATEGORY_TOOLS;
-}
-
-const char * StatisticsModule::version() const
-{
- return "0.1";
-}
StatisticsApplicationAddin::StatisticsApplicationAddin()
diff --git a/src/addins/statistics/statisticsapplicationaddin.hpp
b/src/addins/statistics/statisticsapplicationaddin.hpp
index 8ba17d5..2fb39ee 100644
--- a/src/addins/statistics/statisticsapplicationaddin.hpp
+++ b/src/addins/statistics/statisticsapplicationaddin.hpp
@@ -33,12 +33,6 @@ class StatisticsModule
{
public:
StatisticsModule();
- 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;
};
DECLARE_MODULE(StatisticsModule);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]