[gimp] pdb: remove the section docs for the plug-in group
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] pdb: remove the section docs for the plug-in group
- Date: Thu, 1 Aug 2019 14:16:23 +0000 (UTC)
commit 0cfaeb7a9075058ebf2c7b7d5e47436bf9a6ed9f
Author: Michael Natterer <mitch gimp org>
Date: Thu Aug 1 16:06:54 2019 +0200
pdb: remove the section docs for the plug-in group
it was duplicated with the GimpPlugIn class section docs.
libgimp/gimpplugin_pdb.c | 11 -----------
pdb/groups/plug_in.pdb | 3 ---
pdb/lib.pl | 8 ++++++--
3 files changed, 6 insertions(+), 16 deletions(-)
---
diff --git a/libgimp/gimpplugin_pdb.c b/libgimp/gimpplugin_pdb.c
index 756a9b53be..a3d475b84c 100644
--- a/libgimp/gimpplugin_pdb.c
+++ b/libgimp/gimpplugin_pdb.c
@@ -24,17 +24,6 @@
#include "gimp.h"
-
-/**
- * SECTION: gimpplugin
- * @title: gimpplugin
- * @short_description: Functions useful for plug-ins, e.g. registration and progress indicators.
- *
- * Functions useful for plug-ins, e.g. registration and progress
- * indicators.
- **/
-
-
/**
* _gimp_plugin_domain_register:
* @domain_name: The name of the textdomain (must be unique).
diff --git a/pdb/groups/plug_in.pdb b/pdb/groups/plug_in.pdb
index 235be7bf88..ba4050793d 100644
--- a/pdb/groups/plug_in.pdb
+++ b/pdb/groups/plug_in.pdb
@@ -376,8 +376,5 @@ CODE
%exports = (app => [@procs], lib => [@procs[1,2,3,4,5,6,7]]);
$desc = 'Plug-in';
-$doc_title = 'gimpplugin';
-$doc_short_desc = 'Functions useful for plug-ins, e.g. registration and progress indicators.';
-$doc_long_desc = 'Functions useful for plug-ins, e.g. registration and progress indicators.';
1;
diff --git a/pdb/lib.pl b/pdb/lib.pl
index 5c62d93b00..666fda1982 100644
--- a/pdb/lib.pl
+++ b/pdb/lib.pl
@@ -707,8 +707,10 @@ HEADER
print CFILE qq/#include "config.h"\n\n/;
print CFILE $out->{headers}, "\n" if exists $out->{headers};
print CFILE qq/#include "gimp.h"\n/;
- $long_desc = &desc_wrap($main::grp{$group}->{doc_long_desc});
- print CFILE <<SECTION_DOCS;
+
+ if (exists $main::grp{$group}->{doc_title}) {
+ $long_desc = &desc_wrap($main::grp{$group}->{doc_long_desc});
+ print CFILE <<SECTION_DOCS;
/**
@@ -720,6 +722,8 @@ ${long_desc}
**/
SECTION_DOCS
+}
+
print CFILE "\n", $extra->{code} if exists $extra->{code};
print CFILE $out->{code};
close CFILE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]