[gimp] app: also copy the parent PDB context's stroke options
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: also copy the parent PDB context's stroke options
- Date: Sun, 10 Jan 2016 18:02:36 +0000 (UTC)
commit 26d1b93e0c946298cc2a7b0ac08a67d5e677668f
Author: Michael Natterer <mitch gimp org>
Date: Sun Jan 10 19:01:26 2016 +0100
app: also copy the parent PDB context's stroke options
so a push() will take over the current settings.
app/pdb/gimppdbcontext.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/app/pdb/gimppdbcontext.c b/app/pdb/gimppdbcontext.c
index d7aca1e..dd80391 100644
--- a/app/pdb/gimppdbcontext.c
+++ b/app/pdb/gimppdbcontext.c
@@ -431,6 +431,10 @@ gimp_pdb_context_new (Gimp *gimp,
GIMP_OBJECT (options));
g_object_unref (options);
}
+
+ gimp_config_copy (GIMP_CONFIG (GIMP_PDB_CONTEXT (parent)->stroke_options),
+ GIMP_CONFIG (context->stroke_options),
+ 0);
}
return GIMP_CONTEXT (context);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]