[gimp] app, libgimp: add copyright notices to the new stuff, minor cleanup



commit 8c4f73df8d896a383c0310f24daf88eaffc97979
Author: Michael Natterer <mitch gimp org>
Date:   Wed Jul 31 00:12:36 2019 +0200

    app, libgimp: add copyright notices to the new stuff, minor cleanup

 app/plug-in/gimpgpparams.c      | 1 +
 app/plug-in/gimpgpparams.h      | 1 +
 libgimp/gimpgpcompat.c          | 3 ++-
 libgimp/gimpgpcompat.h          | 1 +
 libgimp/gimpgpparams-body.c     | 1 +
 libgimp/gimpgpparams.c          | 7 +++----
 libgimp/gimpgpparams.h          | 1 +
 libgimp/gimpplugin-private.c    | 1 +
 libgimp/gimpplugin-private.h    | 1 +
 libgimp/gimpplugin.c            | 7 +++++--
 libgimp/gimpplugin.h            | 1 +
 libgimp/gimpprocedure-private.c | 1 +
 libgimp/gimpprocedure-private.h | 1 +
 libgimp/gimpprocedure.c         | 3 +++
 libgimp/gimpprocedure.h         | 3 +++
 15 files changed, 26 insertions(+), 7 deletions(-)
---
diff --git a/app/plug-in/gimpgpparams.c b/app/plug-in/gimpgpparams.c
index e8e25e2a8e..ee19f43c05 100644
--- a/app/plug-in/gimpgpparams.c
+++ b/app/plug-in/gimpgpparams.c
@@ -2,6 +2,7 @@
  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  *
  * gimpgpparams.c
+ * Copyright (C) 2019 Michael Natterer <mitch gimp org>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
diff --git a/app/plug-in/gimpgpparams.h b/app/plug-in/gimpgpparams.h
index 627de34fa0..0aafbf144d 100644
--- a/app/plug-in/gimpgpparams.h
+++ b/app/plug-in/gimpgpparams.h
@@ -2,6 +2,7 @@
  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  *
  * gimpgpparams.h
+ * Copyright (C) 2019 Michael Natterer <mitch gimp org>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
diff --git a/libgimp/gimpgpcompat.c b/libgimp/gimpgpcompat.c
index edb55f9a00..cd70c06ebb 100644
--- a/libgimp/gimpgpcompat.c
+++ b/libgimp/gimpgpcompat.c
@@ -1,7 +1,8 @@
 /* LIBGIMP - The GIMP Library
  * Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
  *
- * gimppdbcompat.c
+ * gimpgpcompat.c
+ * Copyright (C) 2019 Michael Natterer <mitch gimp org>
  *
  * This library is free software: you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
diff --git a/libgimp/gimpgpcompat.h b/libgimp/gimpgpcompat.h
index be596d65f6..5a019a425b 100644
--- a/libgimp/gimpgpcompat.h
+++ b/libgimp/gimpgpcompat.h
@@ -2,6 +2,7 @@
  * Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
  *
  * gimpgpcompat.c
+ * Copyright (C) 2019 Michael Natterer <mitch gimp org>
  *
  * This library is free software: you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
diff --git a/libgimp/gimpgpparams-body.c b/libgimp/gimpgpparams-body.c
index 63f8e0b93d..240ea626f4 100644
--- a/libgimp/gimpgpparams-body.c
+++ b/libgimp/gimpgpparams-body.c
@@ -2,6 +2,7 @@
  * Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
  *
  * gimpgpparams-body.c
+ * Copyright (C) 2019 Michael Natterer <mitch gimp org>
  *
  * This library is free software: you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
diff --git a/libgimp/gimpgpparams.c b/libgimp/gimpgpparams.c
index ef1237348b..6870085638 100644
--- a/libgimp/gimpgpparams.c
+++ b/libgimp/gimpgpparams.c
@@ -2,6 +2,7 @@
  * Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
  *
  * gimpgpparams.c
+ * Copyright (C) 2019 Michael Natterer <mitch gimp org>
  *
  * This library is free software: you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -33,9 +34,7 @@
 #include "gimpgpparams.h"
 
 
-/*  public functions  */
-
-/*  include the implementation of _gimp_param_spec_to_gp_param_def()
- *  from libgimp, they are identical.
+/*  include the implementation, they are shared between app/ and
+ *  libgimp/ but need different headers.
  */
 #include "gimpgpparams-body.c"
diff --git a/libgimp/gimpgpparams.h b/libgimp/gimpgpparams.h
index c6287b94c9..17226238b4 100644
--- a/libgimp/gimpgpparams.h
+++ b/libgimp/gimpgpparams.h
@@ -2,6 +2,7 @@
  * Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
  *
  * gimpgpparams.h
+ * Copyright (C) 2019 Michael Natterer <mitch gimp org>
  *
  * This library is free software: you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
diff --git a/libgimp/gimpplugin-private.c b/libgimp/gimpplugin-private.c
index b5bea60244..9631b96a17 100644
--- a/libgimp/gimpplugin-private.c
+++ b/libgimp/gimpplugin-private.c
@@ -2,6 +2,7 @@
  * Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
  *
  * gimpplugin-private.c
+ * Copyright (C) 2019 Michael Natterer <mitch gimp org>
  *
  * This library is free software: you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
diff --git a/libgimp/gimpplugin-private.h b/libgimp/gimpplugin-private.h
index 38da2435f8..af0ea851eb 100644
--- a/libgimp/gimpplugin-private.h
+++ b/libgimp/gimpplugin-private.h
@@ -2,6 +2,7 @@
  * Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
  *
  * gimpplugin-private.h
+ * Copyright (C) 2019 Michael Natterer <mitch gimp org>
  *
  * This library is free software: you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
diff --git a/libgimp/gimpplugin.c b/libgimp/gimpplugin.c
index ea19065b0b..6fb429f626 100644
--- a/libgimp/gimpplugin.c
+++ b/libgimp/gimpplugin.c
@@ -2,6 +2,7 @@
  * Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
  *
  * gimpplugin.c
+ * Copyright (C) 2019 Michael Natterer <mitch gimp org>
  *
  * This library is free software: you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -147,8 +148,8 @@ gimp_plug_in_add_menu_branch (GimpPlugIn  *plug_in,
 }
 
 GimpProcedure *
-gimp_plug_in_create_procedure (GimpPlugIn    *plug_in,
-                               const gchar   *name)
+gimp_plug_in_create_procedure (GimpPlugIn  *plug_in,
+                               const gchar *name)
 {
   g_return_val_if_fail (GIMP_IS_PLUG_IN (plug_in), NULL);
   g_return_val_if_fail (name != NULL, NULL);
@@ -166,6 +167,8 @@ gimp_plug_in_add_temp_procedure (GimpPlugIn    *plug_in,
 {
   g_return_if_fail (GIMP_IS_PLUG_IN (plug_in));
   g_return_if_fail (GIMP_IS_PROCEDURE (procedure));
+  g_return_if_fail (gimp_procedure_get_proc_type (procedure) ==
+                    GIMP_TEMPORARY);
 
   plug_in->priv->temp_procedures = g_list_prepend (plug_in->priv->temp_procedures,
                                                    g_object_ref (procedure));
diff --git a/libgimp/gimpplugin.h b/libgimp/gimpplugin.h
index 73883dc34a..a3522a1436 100644
--- a/libgimp/gimpplugin.h
+++ b/libgimp/gimpplugin.h
@@ -2,6 +2,7 @@
  * Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
  *
  * gimpplugin.h
+ * Copyright (C) 2019 Michael Natterer <mitch gimp org>
  *
  * This library is free software: you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
diff --git a/libgimp/gimpprocedure-private.c b/libgimp/gimpprocedure-private.c
index 6b30cdad00..f0a7e5660d 100644
--- a/libgimp/gimpprocedure-private.c
+++ b/libgimp/gimpprocedure-private.c
@@ -2,6 +2,7 @@
  * Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
  *
  * gimpprocedure-private.c
+ * Copyright (C) 2019 Michael Natterer <mitch gimp org>
  *
  * This library is free software: you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
diff --git a/libgimp/gimpprocedure-private.h b/libgimp/gimpprocedure-private.h
index 35e9971ec0..ddb8e5584f 100644
--- a/libgimp/gimpprocedure-private.h
+++ b/libgimp/gimpprocedure-private.h
@@ -2,6 +2,7 @@
  * Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
  *
  * gimpprocedure-private.h
+ * Copyright (C) 2019 Michael Natterer <mitch gimp org>
  *
  * This library is free software: you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
diff --git a/libgimp/gimpprocedure.c b/libgimp/gimpprocedure.c
index 5bd67ee840..02e6623f8b 100644
--- a/libgimp/gimpprocedure.c
+++ b/libgimp/gimpprocedure.c
@@ -1,6 +1,9 @@
 /* GIMP - The GNU Image Manipulation Program
  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  *
+ * gimpprocedure.c
+ * Copyright (C) 2019 Michael Natterer <mitch gimp org>
+ *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 3 of the License, or
diff --git a/libgimp/gimpprocedure.h b/libgimp/gimpprocedure.h
index ebea525068..0fe740dc6f 100644
--- a/libgimp/gimpprocedure.h
+++ b/libgimp/gimpprocedure.h
@@ -1,6 +1,9 @@
 /* GIMP - The GNU Image Manipulation Program
  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  *
+ * gimpprocedure.h
+ * Copyright (C) 2019 Michael Natterer <mitch gimp org>
+ *
  * This library is free software: you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either


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