[gimp] app: do not sync the PDB context "name" property.



commit 5a93f5499498ae9c2096f358d7c53f7b52408c95
Author: Jehan <jehan girinstud io>
Date:   Fri Apr 15 21:33:55 2022 +0200

    app: do not sync the PDB context "name" property.
    
    The PDB context name was overwritten when syncing with the parent
    context, e.g. the "User" context. Therefore "stale context" warnings,
    for instance, were misleadingly telling the "User" context was leaking.

 app/pdb/gimppdbcontext.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/app/pdb/gimppdbcontext.c b/app/pdb/gimppdbcontext.c
index 5004c48908..89c80315dc 100644
--- a/app/pdb/gimppdbcontext.c
+++ b/app/pdb/gimppdbcontext.c
@@ -501,6 +501,11 @@ gimp_pdb_context_new (Gimp        *gimp,
    */
   gimp_config_sync (G_OBJECT (parent), G_OBJECT (context), 0);
 
+  /* Reset the proper init name after syncing. */
+  g_object_set (G_OBJECT (context),
+                "name", "PDB Context",
+                NULL);
+
   return GIMP_CONTEXT (context);
 }
 


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