[gnote] Update note directory watcher addin to new addin support
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Update note directory watcher addin to new addin support
- Date: Sun, 14 Apr 2013 15:23:43 +0000 (UTC)
commit 6ad5ba7433acd9ae02572b735ad4adbb4f462e69
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Apr 14 16:24:39 2013 +0300
Update note directory watcher addin to new addin support
src/addins/notedirectorywatcher/Makefile.am | 9 +++++++
.../notedirectorywatcher.desktop.in | 9 +++++++
.../notedirectorywatcherapplicationaddin.cpp | 30 ----------------------
.../notedirectorywatcherapplicationaddin.hpp | 8 +-----
4 files changed, 19 insertions(+), 37 deletions(-)
---
diff --git a/src/addins/notedirectorywatcher/Makefile.am b/src/addins/notedirectorywatcher/Makefile.am
index 19bfb34..c414af1 100644
--- a/src/addins/notedirectorywatcher/Makefile.am
+++ b/src/addins/notedirectorywatcher/Makefile.am
@@ -1,9 +1,18 @@
include $(builddir)/../addins.mk
+ INTLTOOL_DESKTOP_RULE@
+
+desktop_in_files = notedirectorywatcher.desktop.in
+desktop_files = $(desktop_in_files:.desktop.in=.desktop)
+
addinsdir = $(ADDINSDIR)
addins_LTLIBRARIES = notedirectorywatcher.la
+addins_DATA = $(desktop_files)
notedirectorywatcher_la_SOURCES = notedirectorywatcherapplicationaddin.hpp
notedirectorywatcherapplicationaddin.cpp \
$(NULL)
+
+EXTRA_DIST = $(desktop_in_files)
+DISTCLEANFILES = $(desktop_files)
diff --git a/src/addins/notedirectorywatcher/notedirectorywatcher.desktop.in
b/src/addins/notedirectorywatcher/notedirectorywatcher.desktop.in
new file mode 100644
index 0000000..58a3c43
--- /dev/null
+++ b/src/addins/notedirectorywatcher/notedirectorywatcher.desktop.in
@@ -0,0 +1,9 @@
+[AddinInfo]
+Id=NoteDirectoryWatcherAddin
+_Name=Note Directory Watcher
+_Description=Watch your Gnote note directory for changes to your notes.
+_Authors=Aurimas Černius and Tomboy original authors
+Category=Tools
+Version=0.2
+DefaultEnabled=false
+Module=notedirectorywatcher
diff --git a/src/addins/notedirectorywatcher/notedirectorywatcherapplicationaddin.cpp
b/src/addins/notedirectorywatcher/notedirectorywatcherapplicationaddin.cpp
index a47dae5..9b30534 100644
--- a/src/addins/notedirectorywatcher/notedirectorywatcherapplicationaddin.cpp
+++ b/src/addins/notedirectorywatcher/notedirectorywatcherapplicationaddin.cpp
@@ -36,36 +36,6 @@ NoteDirectoryWatcherModule::NoteDirectoryWatcherModule()
ADD_INTERFACE_IMPL(NoteDirectoryWatcherApplicationAddin);
}
-const char * NoteDirectoryWatcherModule::id() const
-{
- return "NoteDirectoryWatcherAddin";
-}
-
-const char * NoteDirectoryWatcherModule::name() const
-{
- return _("Note Directory Watcher");
-}
-
-const char * NoteDirectoryWatcherModule::description() const
-{
- return _("Watch your Gnote note directory for changes to your notes.");
-}
-
-const char * NoteDirectoryWatcherModule::authors() const
-{
- return _("Aurimas Černius and Tomboy original authors");
-}
-
-int NoteDirectoryWatcherModule::category() const
-{
- return gnote::ADDIN_CATEGORY_TOOLS;
-}
-
-const char * NoteDirectoryWatcherModule::version() const
-{
- return "0.1";
-}
-
diff --git a/src/addins/notedirectorywatcher/notedirectorywatcherapplicationaddin.hpp
b/src/addins/notedirectorywatcher/notedirectorywatcherapplicationaddin.hpp
index 8aabfde..92a4990 100644
--- a/src/addins/notedirectorywatcher/notedirectorywatcherapplicationaddin.hpp
+++ b/src/addins/notedirectorywatcher/notedirectorywatcherapplicationaddin.hpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2012 Aurimas Cernius
+ * Copyright (C) 2012-2013 Aurimas Cernius
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -38,12 +38,6 @@ class NoteDirectoryWatcherModule
{
public:
NoteDirectoryWatcherModule();
- 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]