From e1fbe56adf49a5f4d3a3bb493933d9ae5a5c081f Mon Sep 17 00:00:00 2001 From: monsta Date: Mon, 5 Dec 2016 17:36:57 +0300 Subject: plugins: make them actually recognized and loaded by Pluma - use *.plugin extension instead of *.pluma-plugin - use "Plugin" section name instead of "Pluma Plugin" mostly adapted from: https://git.gnome.org/browse/gedit/commit/?id=1d56b827f14096891bb03dbd5e8211fdad1331ad https://git.gnome.org/browse/gedit/commit/?id=7c22769d73f756b9d1388febd147c9d267ed54cb --- plugins/docinfo/Makefile.am | 6 +++--- plugins/docinfo/docinfo.plugin.desktop.in | 7 +++++++ plugins/docinfo/docinfo.pluma-plugin.desktop.in | 7 ------- 3 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 plugins/docinfo/docinfo.plugin.desktop.in delete mode 100644 plugins/docinfo/docinfo.pluma-plugin.desktop.in (limited to 'plugins/docinfo') diff --git a/plugins/docinfo/Makefile.am b/plugins/docinfo/Makefile.am index ec9fc410..1e1b48e9 100644 --- a/plugins/docinfo/Makefile.am +++ b/plugins/docinfo/Makefile.am @@ -19,11 +19,11 @@ libdocinfo_la_LIBADD = $(PLUMA_LIBS) uidir = $(PLUMA_PLUGINS_DATA_DIR)/docinfo ui_DATA = docinfo.ui -plugin_in_files = docinfo.pluma-plugin.desktop.in +plugin_in_files = docinfo.plugin.desktop.in -%.pluma-plugin: %.pluma-plugin.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache +%.plugin: %.plugin.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache -plugin_DATA = $(plugin_in_files:.pluma-plugin.desktop.in=.pluma-plugin) +plugin_DATA = $(plugin_in_files:.plugin.desktop.in=.plugin) EXTRA_DIST = $(ui_DATA) $(plugin_in_files) diff --git a/plugins/docinfo/docinfo.plugin.desktop.in b/plugins/docinfo/docinfo.plugin.desktop.in new file mode 100644 index 00000000..b4da32b0 --- /dev/null +++ b/plugins/docinfo/docinfo.plugin.desktop.in @@ -0,0 +1,7 @@ +[Plugin] +Module=docinfo +IAge=2 +_Name=Document Statistics +_Description=Analyzes the current document and reports the number of words, lines, characters and non-space characters in it. +Authors=Paolo Maggi ;Jorge Alberto Torres +Copyright=Copyright © 2002-2005 Paolo Maggi diff --git a/plugins/docinfo/docinfo.pluma-plugin.desktop.in b/plugins/docinfo/docinfo.pluma-plugin.desktop.in deleted file mode 100644 index 990f2cd6..00000000 --- a/plugins/docinfo/docinfo.pluma-plugin.desktop.in +++ /dev/null @@ -1,7 +0,0 @@ -[Pluma Plugin] -Module=docinfo -IAge=2 -_Name=Document Statistics -_Description=Analyzes the current document and reports the number of words, lines, characters and non-space characters in it. -Authors=Paolo Maggi ;Jorge Alberto Torres -Copyright=Copyright © 2002-2005 Paolo Maggi -- cgit v1.2.1