[gimp] pdb: add barak_pdb_misc() instead of replicating the author information



commit a885824f70f8d1a94d26a63cb358c5e19b50ae51
Author: Michael Natterer <mitch gimp org>
Date:   Tue Sep 14 14:38:35 2010 +0200

    pdb: add barak_pdb_misc() instead of replicating the author information

 tools/pdbgen/pdb/text_layer.pdb |   10 ++--------
 tools/pdbgen/pdb/vectors.pdb    |    5 +----
 tools/pdbgen/stddefs.pdb        |    4 ++++
 3 files changed, 7 insertions(+), 12 deletions(-)
---
diff --git a/tools/pdbgen/pdb/text_layer.pdb b/tools/pdbgen/pdb/text_layer.pdb
index 2bad960..8ed045d 100644
--- a/tools/pdbgen/pdb/text_layer.pdb
+++ b/tools/pdbgen/pdb/text_layer.pdb
@@ -163,10 +163,7 @@ Note: Setting the markup of a text layer using Pango's markup is not
 supported for now.
 HELP
 
-    $author = 'Barak Itkin <lightningismyname gmail com>';
-    $copyright = 'Barak Itkin';
-    $date = '2010';
-    $since = '2.8';
+    barak_pdb_misc('2010', '2.8');
 
     @inargs = (
         { name => 'layer', type => 'layer',
@@ -1162,10 +1159,7 @@ keeping it as a text layer and not converting it to a bitmap like
 gimp_layer_resize() would do.
 HELP
 
-    	$author = 'Barak Itkin <lightningismyname gmail com>';
-	$copyright = 'Barak Itkin';
-	$date = '2009';
-	$since = '2.8';
+    barak_pdb_misc('2009', '2.8');
 
     @inargs = (
         { name => 'layer', type => 'layer',
diff --git a/tools/pdbgen/pdb/vectors.pdb b/tools/pdbgen/pdb/vectors.pdb
index 4900ff6..a16e9b7 100644
--- a/tools/pdbgen/pdb/vectors.pdb
+++ b/tools/pdbgen/pdb/vectors.pdb
@@ -122,10 +122,7 @@ sub vectors_copy {
 This procedure copies the specified vectors object and returns the copy.
 HELP
 
-    $author = 'Barak Itkin <lightningismyname gmail com>';
-    $copyright = 'Barak Itkin';
-    $date = '2008';
-    $since = '2.6';
+    barak_pdb_misc('2008', '2.6');
 
     @inargs = (
 	{ name => 'vectors', type => 'vectors',
diff --git a/tools/pdbgen/stddefs.pdb b/tools/pdbgen/stddefs.pdb
index 425c12d..343aa5c 100644
--- a/tools/pdbgen/stddefs.pdb
+++ b/tools/pdbgen/stddefs.pdb
@@ -57,6 +57,10 @@ sub austin_pdb_misc {
     contrib_pdb_misc('Austin Donnelly', '', @_);
 }
 
+sub barak_pdb_misc {
+    contrib_pdb_misc('Barak Itkin', 'lightningismyname gmail com', @_);
+}
+
 sub bill_pdb_misc {
     contrib_pdb_misc('Bill Skaggs', 'weskaggs primate ucdavis edu', @_);
 }



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