[gnote] Update bugzilla addin for new addin support



commit e49adf63bb8fd30cfcf65b1984c13ae96d69710f
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Apr 14 16:05:35 2013 +0300

    Update bugzilla addin for new addin support

 src/addins/bugzilla/Makefile.am           | 11 ++++++++++-
 src/addins/bugzilla/bugzilla.desktop.in   |  9 +++++++++
 src/addins/bugzilla/bugzillanoteaddin.cpp | 24 ------------------------
 src/addins/bugzilla/bugzillanoteaddin.hpp |  8 +-------
 4 files changed, 20 insertions(+), 32 deletions(-)
---
diff --git a/src/addins/bugzilla/Makefile.am b/src/addins/bugzilla/Makefile.am
index 8c86327..106ab4c 100644
--- a/src/addins/bugzilla/Makefile.am
+++ b/src/addins/bugzilla/Makefile.am
@@ -1,10 +1,14 @@
 
 include $(builddir)/../addins.mk
 
-EXTRA_DIST = bug.png
+ INTLTOOL_DESKTOP_RULE@
+
+desktop_in_files = bugzilla.desktop.in
+desktop_files    = $(desktop_in_files:.desktop.in=.desktop)
 
 addinsdir = $(ADDINSDIR)
 addins_LTLIBRARIES = bugzilla.la
+addins_DATA = $(desktop_files)
 
 icondir = @datadir@/gnote/icons/hicolor/16x16/apps
 icon_DATA = bug.png
@@ -15,3 +19,8 @@ bugzilla_la_SOURCES = bugzillanoteaddin.hpp bugzillanoteaddin.cpp \
        bugzillapreferencesfactory.hpp \
        bugzillapreferences.hpp bugzillapreferences.cpp \
        $(NULL)
+
+EXTRA_DIST = bug.png \
+       $(desktop_in_files) \
+       $(NULL)
+DISTCLEANFILES = $(desktop_files)
diff --git a/src/addins/bugzilla/bugzilla.desktop.in b/src/addins/bugzilla/bugzilla.desktop.in
new file mode 100644
index 0000000..7ead9f7
--- /dev/null
+++ b/src/addins/bugzilla/bugzilla.desktop.in
@@ -0,0 +1,9 @@
+[AddinInfo]
+Id=BugzillaAddin
+_Name=Bugzilla Links
+_Description=Allows you to drag a Bugzilla URL from your browser directly into a Gnote note.  The bug number 
is inserted as a link with a little bug icon next to it.
+_Authors=Hubert Figuiere and the Tomboy Project
+Category=DesktopIntegration
+Version=0.2
+DefaultEnabled=false
+Module=bugzilla
diff --git a/src/addins/bugzilla/bugzillanoteaddin.cpp b/src/addins/bugzilla/bugzillanoteaddin.cpp
index 5bf7b54..2bc4aa8 100644
--- a/src/addins/bugzilla/bugzillanoteaddin.cpp
+++ b/src/addins/bugzilla/bugzillanoteaddin.cpp
@@ -49,30 +49,6 @@ namespace bugzilla {
     ADD_INTERFACE_IMPL(BugzillaPreferencesFactory);
     enabled(false);
   }
-  const char * BugzillaModule::id() const
-  {
-    return "BugzillaAddin";
-  }
-  const char * BugzillaModule::name() const
-  {
-    return _("Bugzilla Links");
-  }
-  const char * BugzillaModule::description() const
-  {
-    return _("Allows you to drag a Bugzilla URL from your browser directly into a Gnote note.  The bug 
number is inserted as a link with a little bug icon next to it.");
-  }
-  const char * BugzillaModule::authors() const
-  {
-    return _("Hubert Figuiere and the Tomboy Project");
-  }
-  int BugzillaModule::category() const
-  {
-    return gnote::ADDIN_CATEGORY_DESKTOP_INTEGRATION;
-  }
-  const char * BugzillaModule::version() const
-  {
-    return "0.1";
-  }
 
 
   const char * BugzillaNoteAddin::TAG_NAME = "link:bugzilla";
diff --git a/src/addins/bugzilla/bugzillanoteaddin.hpp b/src/addins/bugzilla/bugzillanoteaddin.hpp
index 44f2d3f..3f9ad86 100644
--- a/src/addins/bugzilla/bugzillanoteaddin.hpp
+++ b/src/addins/bugzilla/bugzillanoteaddin.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
@@ -36,12 +36,6 @@ class BugzillaModule
 {
 public:
   BugzillaModule();
-  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;
 };
 
 class BugzillaNoteAddin


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]