[gnote] Update sticky notes import addin to new addin support
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Update sticky notes import addin to new addin support
- Date: Sun, 14 Apr 2013 15:24:08 +0000 (UTC)
commit 008116f1175f6fdceb96c583f0128add0bf6cf2f
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Apr 14 16:50:43 2013 +0300
Update sticky notes import addin to new addin support
src/addins/stickynoteimport/Makefile.am | 9 ++++++++
.../stickynoteimport/stickynoteimport.desktop.in | 9 ++++++++
.../stickynoteimport/stickynoteimportnoteaddin.cpp | 26 +---------------------
.../stickynoteimport/stickynoteimportnoteaddin.hpp | 8 +------
4 files changed, 20 insertions(+), 32 deletions(-)
---
diff --git a/src/addins/stickynoteimport/Makefile.am b/src/addins/stickynoteimport/Makefile.am
index 9edada0..022c05b 100644
--- a/src/addins/stickynoteimport/Makefile.am
+++ b/src/addins/stickynoteimport/Makefile.am
@@ -1,9 +1,18 @@
include $(builddir)/../addins.mk
+ INTLTOOL_DESKTOP_RULE@
+
+desktop_in_files = stickynoteimport.desktop.in
+desktop_files = $(desktop_in_files:.desktop.in=.desktop)
+
addinsdir = $(ADDINSDIR)
addins_LTLIBRARIES = stickynoteimport.la
+addins_DATA = $(desktop_files)
stickynoteimport_la_SOURCES = stickynoteimportnoteaddin.hpp stickynoteimportnoteaddin.cpp \
$(NULL)
+
+EXTRA_DIST = $(desktop_in_files)
+DISTCLEANFILES = $(desktop_files)
diff --git a/src/addins/stickynoteimport/stickynoteimport.desktop.in
b/src/addins/stickynoteimport/stickynoteimport.desktop.in
new file mode 100644
index 0000000..3df43be
--- /dev/null
+++ b/src/addins/stickynoteimport/stickynoteimport.desktop.in
@@ -0,0 +1,9 @@
+[AddinInfo]
+Id=StickyNoteImportAddin
+_Name=Sticky Notes Importer
+_Description=Import your notes from the Sticky Notes applet.
+_Authors=Hubert Figuiere and the Tomboy Project
+Category=Tools
+Version=0.2
+DefaultEnabled=false
+Module=stickynoteimport
diff --git a/src/addins/stickynoteimport/stickynoteimportnoteaddin.cpp
b/src/addins/stickynoteimport/stickynoteimportnoteaddin.cpp
index cb84018..6edfe29 100644
--- a/src/addins/stickynoteimport/stickynoteimportnoteaddin.cpp
+++ b/src/addins/stickynoteimport/stickynoteimportnoteaddin.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2010-2011 Aurimas Cernius
+ * Copyright (C) 2010-2011,2013 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* This program is free software: you can redistribute it and/or modify
@@ -50,30 +50,6 @@ StickyNoteImportModule::StickyNoteImportModule()
{
ADD_INTERFACE_IMPL(StickyNoteImportNoteAddin);
}
-const char * StickyNoteImportModule::id() const
-{
- return "StickyNoteImportAddin";
-}
-const char * StickyNoteImportModule::name() const
-{
- return _("Sticky Notes Importer");
-}
-const char * StickyNoteImportModule::description() const
-{
- return _("Import your notes from the Sticky Notes applet.");
-}
-const char * StickyNoteImportModule::authors() const
-{
- return _("Hubert Figuiere and the Tomboy Project");
-}
-int StickyNoteImportModule::category() const
-{
- return gnote::ADDIN_CATEGORY_TOOLS;
-}
-const char * StickyNoteImportModule::version() const
-{
- return "0.1";
-}
static const char * STICKY_XML_REL_PATH = "/.gnome2/stickynotes_applet";
static const char * STICKY_NOTE_QUERY = "//note";
diff --git a/src/addins/stickynoteimport/stickynoteimportnoteaddin.hpp
b/src/addins/stickynoteimport/stickynoteimportnoteaddin.hpp
index 0ee5574..aded038 100644
--- a/src/addins/stickynoteimport/stickynoteimportnoteaddin.hpp
+++ b/src/addins/stickynoteimport/stickynoteimportnoteaddin.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
@@ -39,12 +39,6 @@ class StickyNoteImportModule
{
public:
StickyNoteImportModule();
- 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]