[gnote] Update insert timestamp addin to new addin support
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Update insert timestamp addin to new addin support
- Date: Sun, 14 Apr 2013 15:23:38 +0000 (UTC)
commit 3ba7db51e2264708c49cb76f413d247f95b11f9a
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Apr 14 16:20:57 2013 +0300
Update insert timestamp addin to new addin support
src/addins/inserttimestamp/Makefile.am | 9 ++++++++
.../inserttimestamp/inserttimestamp.desktop.in | 9 ++++++++
.../inserttimestamp/inserttimestampnoteaddin.cpp | 26 +---------------------
.../inserttimestamp/inserttimestampnoteaddin.hpp | 8 +------
4 files changed, 20 insertions(+), 32 deletions(-)
---
diff --git a/src/addins/inserttimestamp/Makefile.am b/src/addins/inserttimestamp/Makefile.am
index 25dd0dd..d95b40d 100644
--- a/src/addins/inserttimestamp/Makefile.am
+++ b/src/addins/inserttimestamp/Makefile.am
@@ -1,8 +1,14 @@
include $(builddir)/../addins.mk
+ INTLTOOL_DESKTOP_RULE@
+
+desktop_in_files = inserttimestamp.desktop.in
+desktop_files = $(desktop_in_files:.desktop.in=.desktop)
+
addinsdir = $(ADDINSDIR)
addins_LTLIBRARIES = inserttimestamp.la
+addins_DATA = $(desktop_files)
inserttimestamp_la_SOURCES = inserttimestampnoteaddin.hpp \
@@ -10,3 +16,6 @@ inserttimestamp_la_SOURCES = inserttimestampnoteaddin.hpp \
inserttimestamppreferences.hpp inserttimestamppreferences.cpp \
inserttimestamppreferencesfactory.hpp \
$(NULL)
+
+EXTRA_DIST = $(desktop_in_files)
+DISTCLEANFILES = $(desktop_files)
diff --git a/src/addins/inserttimestamp/inserttimestamp.desktop.in
b/src/addins/inserttimestamp/inserttimestamp.desktop.in
new file mode 100644
index 0000000..3ba6bc4
--- /dev/null
+++ b/src/addins/inserttimestamp/inserttimestamp.desktop.in
@@ -0,0 +1,9 @@
+[AddinInfo]
+Id=InsertTimestampAddin
+_Name=Insert Timestamp
+_Description=Inserts current date and time at the cursor position.
+_Authors=Hubert Figuiere and Tomboy Project
+Category=Tools
+Version=0.2
+DefaultEnabled=false
+Module=inserttimestamp
diff --git a/src/addins/inserttimestamp/inserttimestampnoteaddin.cpp
b/src/addins/inserttimestamp/inserttimestampnoteaddin.cpp
index 5cc089c..c4ba8a1 100644
--- a/src/addins/inserttimestamp/inserttimestampnoteaddin.cpp
+++ b/src/addins/inserttimestamp/inserttimestampnoteaddin.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
@@ -36,30 +36,6 @@ namespace inserttimestamp {
ADD_INTERFACE_IMPL(InsertTimestampPreferencesFactory);
enabled(false);
}
- const char * InsertTimeStampModule::id() const
- {
- return "InsertTimestampAddin";
- }
- const char * InsertTimeStampModule::name() const
- {
- return _("Insert Timestamp");
- }
- const char * InsertTimeStampModule::description() const
- {
- return _("Inserts current date and time at the cursor position.");
- }
- const char * InsertTimeStampModule::authors() const
- {
- return _("Hubert Figuiere and Tomboy Project");
- }
- int InsertTimeStampModule::category() const
- {
- return gnote::ADDIN_CATEGORY_TOOLS;
- }
- const char * InsertTimeStampModule::version() const
- {
- return "0.1.1";
- }
void InsertTimestampNoteAddin::initialize()
diff --git a/src/addins/inserttimestamp/inserttimestampnoteaddin.hpp
b/src/addins/inserttimestamp/inserttimestampnoteaddin.hpp
index 9461154..7bfd77d 100644
--- a/src/addins/inserttimestamp/inserttimestampnoteaddin.hpp
+++ b/src/addins/inserttimestamp/inserttimestampnoteaddin.hpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2010 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
@@ -37,12 +37,6 @@ class InsertTimeStampModule
{
public:
InsertTimeStampModule();
- 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]