[gimp] plug-ins: rename the C goat exercise to goat-exercise-c.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: rename the C goat exercise to goat-exercise-c.
- Date: Fri, 9 Aug 2019 13:48:50 +0000 (UTC)
commit c1f28f7e8c4461e6d556917a9a6277db5fa35fe8
Author: Jehan <jehan girinstud io>
Date: Fri Aug 9 15:41:42 2019 +0200
plug-ins: rename the C goat exercise to goat-exercise-c.
Makes for consistent naming of the different demo code we have there.
plug-ins/goat-exercises/Makefile.am | 12 ++++++------
.../{goat-exercise.c => goat-exercise-c.c} | 16 ++++++++--------
2 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/plug-ins/goat-exercises/Makefile.am b/plug-ins/goat-exercises/Makefile.am
index 1c7a549f7f..2986292a9d 100644
--- a/plug-ins/goat-exercises/Makefile.am
+++ b/plug-ins/goat-exercises/Makefile.am
@@ -36,15 +36,15 @@ AM_CPPFLAGS = \
# C version.
-goat_exercise_libexecdir = $(gimpplugindir)/plug-ins/goat-exercise
+goat_exercise_c_libexecdir = $(gimpplugindir)/plug-ins/goat-exercise-c
-goat_exercise_libexec_PROGRAMS = goat-exercise
-goat_exercise_libexec_DATA = goat-exercise.c
+goat_exercise_c_libexec_PROGRAMS = goat-exercise-c
+goat_exercise_c_libexec_DATA = goat-exercise-c.c
-goat_exercise_SOURCES = \
- goat-exercise.c
+goat_exercise_c_SOURCES = \
+ goat-exercise-c.c
-goat_exercise_LDADD = \
+goat_exercise_c_LDADD = \
$(libgimp) \
$(libgimpmath) \
$(libgimpconfig) \
diff --git a/plug-ins/goat-exercises/goat-exercise.c b/plug-ins/goat-exercises/goat-exercise-c.c
similarity index 95%
rename from plug-ins/goat-exercises/goat-exercise.c
rename to plug-ins/goat-exercises/goat-exercise-c.c
index 54f4cb984a..da86e664e7 100644
--- a/plug-ins/goat-exercises/goat-exercise.c
+++ b/plug-ins/goat-exercises/goat-exercise-c.c
@@ -27,9 +27,9 @@
#include "libgimp/stdplugins-intl.h"
-#define PLUG_IN_BINARY "goat-exercise"
+#define PLUG_IN_BINARY "goat-exercise-c"
#define PLUG_IN_SOURCE PLUG_IN_BINARY ".c"
-#define PLUG_IN_PROC "plug-in-goat-exercise"
+#define PLUG_IN_PROC "plug-in-goat-exercise-c"
#define PLUG_IN_ROLE "goat-exercise-C"
#define GOAT_URI
"https://gitlab.gnome.org/GNOME/gimp/blob/master/plug-ins/goat-exercises/goat-exercise.c"
@@ -42,7 +42,7 @@ typedef struct _GoatClass GoatClass;
struct _Goat
{
- GimpPlugIn parent_instance;
+ GimpPlugIn parent_instance;
};
struct _GoatClass
@@ -203,11 +203,11 @@ goat_run (GimpProcedure *procedure,
gtk_widget_show (box);
head_text = g_strdup_printf (_("This plug-in is an exercise in '%s' "
- "to demo plug-in creation.\n"
- "Check out the last version "
- "of the source code online by "
- "clicking the \"Source\" button."),
- "C");
+ "to demo plug-in creation.\n"
+ "Check out the last version "
+ "of the source code online by "
+ "clicking the \"Source\" button."),
+ "C");
widget = gtk_label_new (head_text);
g_free (head_text);
gtk_box_pack_start (GTK_BOX (box), widget, FALSE, FALSE, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]