[gimp] app: print to standard error output when procedure uses deprecated…
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: print to standard error output when procedure uses deprecated…
- Date: Tue, 20 Apr 2021 15:53:51 +0000 (UTC)
commit 0b750eca6fa90aa6b1c2b3eb6e0fc82eb96f1b70
Author: Jehan <jehan girinstud io>
Date: Tue Apr 20 17:43:53 2021 +0200
app: print to standard error output when procedure uses deprecated…
… single drawable run() function.
All Scheme scripts use a single drawable and I am not so sure where to
change this (or rather I hope someone will handle this rather than I).
So let's not output a warning which would result into a stacktrace,
blocking the GUI for a second or 2 and displaying an annoying popup each
time. Let's just output to stderr for now until we get into a better
state.
app/actions/procedure-commands.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/actions/procedure-commands.c b/app/actions/procedure-commands.c
index 5a0a745730..16974493e9 100644
--- a/app/actions/procedure-commands.c
+++ b/app/actions/procedure-commands.c
@@ -254,8 +254,8 @@ procedure_commands_get_display_args (GimpProcedure *procedure,
{
if (drawables_list)
{
- g_warning ("%s: plug-in procedures expecting a single drawable are deprecated!",
- G_STRFUNC);
+ g_printerr ("%s: plug-in procedures expecting a single drawable are deprecated!\n",
+ G_STRFUNC);
g_value_set_object (gimp_value_array_index (args, n_args),
drawables_list->data);
n_args++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]