[gi-docgen/signal-self] generate: Add pointer to signal's instance parameter




commit d5aad6c7a2e2f5df4b0b476f1d39aac340515185
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Aug 5 00:14:12 2021 +0100

    generate: Add pointer to signal's instance parameter
    
    The type name is without a `*`.

 gidocgen/gdgenerate.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gidocgen/gdgenerate.py b/gidocgen/gdgenerate.py
index 8bd51db..0c496c1 100644
--- a/gidocgen/gdgenerate.py
+++ b/gidocgen/gdgenerate.py
@@ -637,7 +637,7 @@ class TemplateSignal:
         else:
             res += [f"{self.return_value.type_cname}"]
         res += [f"{self.identifier} ("]
-        res += [f"  {self.type_cname} self,"]
+        res += [f"  {self.type_cname}* self,"]
         for arg in self.arguments:
             res += [f"  {arg.c_decl},"]
         res += ["  gpointer user_data"]


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