[gnome-builder/gnome-builder-3-36] snippets: Fix gobject_boxed_copy C snippet



commit 8a993d2fb689e3f6f0fb8bc7ae8fe02ecf39db34
Author: James Westman <james flyingpimonster net>
Date:   Sun May 3 13:20:14 2020 -0500

    snippets: Fix gobject_boxed_copy C snippet
    
    The gobject_boxed_copy snippet for C source files used hyphens in the struct
    name rather than camel case, which generated invalid C code.

 src/plugins/snippets/snippets/gobject.snippets | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/snippets/snippets/gobject.snippets b/src/plugins/snippets/snippets/gobject.snippets
index 2c1b1dde4..c2d9e78c0 100644
--- a/src/plugins/snippets/snippets/gobject.snippets
+++ b/src/plugins/snippets/snippets/gobject.snippets
@@ -345,7 +345,7 @@ snippet gobject_boxed_copy
 
        G_DEFINE_BOXED_TYPE (${2:$1|camelize}, ${3:$1|functify}, $3_copy, $3_free)
 
-       struct _$1
+       struct _$2
        {
                $0;
        };


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