[gnote] Update fixed width addin to new addin support
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Update fixed width addin to new addin support
- Date: Sun, 14 Apr 2013 15:23:33 +0000 (UTC)
commit a015158441d3165bb90bb92e23aa7d27421aa187
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Apr 14 16:17:20 2013 +0300
Update fixed width addin to new addin support
src/addins/fixedwidth/Makefile.am | 9 +++++++++
src/addins/fixedwidth/fixedwidth.desktop.in | 9 +++++++++
src/addins/fixedwidth/fixedwidthnoteaddin.cpp | 28 +--------------------------
src/addins/fixedwidth/fixedwidthnoteaddin.hpp | 8 +-------
4 files changed, 20 insertions(+), 34 deletions(-)
---
diff --git a/src/addins/fixedwidth/Makefile.am b/src/addins/fixedwidth/Makefile.am
index 248f192..a37edb8 100644
--- a/src/addins/fixedwidth/Makefile.am
+++ b/src/addins/fixedwidth/Makefile.am
@@ -1,11 +1,20 @@
include $(builddir)/../addins.mk
+ INTLTOOL_DESKTOP_RULE@
+
+desktop_in_files = fixedwidth.desktop.in
+desktop_files = $(desktop_in_files:.desktop.in=.desktop)
+
addinsdir = $(ADDINSDIR)
addins_LTLIBRARIES = fixedwidth.la
+addins_DATA = $(desktop_files)
fixedwidth_la_SOURCES = fixedwidthnoteaddin.hpp fixedwidthnoteaddin.cpp \
fixedwidthtag.hpp \
fixedwidthmenuitem.hpp fixedwidthmenuitem.cpp \
$(NULL)
+
+EXTRA_DIST = $(desktop_in_files)
+DISTCLEANFILES = $(desktop_files)
diff --git a/src/addins/fixedwidth/fixedwidth.desktop.in b/src/addins/fixedwidth/fixedwidth.desktop.in
new file mode 100644
index 0000000..2e2f6a6
--- /dev/null
+++ b/src/addins/fixedwidth/fixedwidth.desktop.in
@@ -0,0 +1,9 @@
+[AddinInfo]
+Id=FixedWidthAddin
+_Name=Fixed Width
+_Description=Adds fixed-width font style.
+_Authors=Hubert Figuiere and the Tomboy Project
+Category=Formatting
+Version=0.3
+DefaultEnabled=true
+Module=fixedwidth
diff --git a/src/addins/fixedwidth/fixedwidthnoteaddin.cpp b/src/addins/fixedwidth/fixedwidthnoteaddin.cpp
index 8f906db..0fd5971 100644
--- a/src/addins/fixedwidth/fixedwidthnoteaddin.cpp
+++ b/src/addins/fixedwidth/fixedwidthnoteaddin.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2010 Aurimas Cernius
+ * Copyright (C) 2010,2013 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
* Original C# file
* (C) 2006 Ryan Lortie <desrt desrt ca>
@@ -39,32 +39,6 @@ namespace fixedwidth {
ADD_INTERFACE_IMPL(FixedWidthNoteAddin);
}
- const char * FixedWidthModule::id() const
- {
- return "FixedWidthAddin";
- }
- const char * FixedWidthModule::name() const
- {
- // this is the name of the plugin.
- return _("Fixed Width");
- }
- const char * FixedWidthModule::description() const
- {
- return _("Adds fixed-width font style.");
- }
- const char * FixedWidthModule::authors() const
- {
- return "";
- }
- int FixedWidthModule::category() const
- {
- return gnote::ADDIN_CATEGORY_FORMATTING;
- }
- const char * FixedWidthModule::version() const
- {
- return "0.2";
- }
-
void FixedWidthNoteAddin::initialize ()
diff --git a/src/addins/fixedwidth/fixedwidthnoteaddin.hpp b/src/addins/fixedwidth/fixedwidthnoteaddin.hpp
index 16067cd..4681d09 100644
--- a/src/addins/fixedwidth/fixedwidthnoteaddin.hpp
+++ b/src/addins/fixedwidth/fixedwidthnoteaddin.hpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2010 Aurimas Cernius
+ * Copyright (C) 2010,2013 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
* Original C# file
* (C) 2006 Ryan Lortie <desrt desrt ca>
@@ -43,12 +43,6 @@ namespace fixedwidth {
{
public:
FixedWidthModule();
- 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]