[gnome-builder] snippets: add gsignal snippet



commit e9f355449d112e7e22ec2906044e37bb57483cd4
Author: Christian Hergert <christian hergert me>
Date:   Wed Jan 14 14:51:29 2015 -0800

    snippets: add gsignal snippet
    
    Helps get signals started since there are so many parameters to remember.

 src/resources/snippets/gobject.snippets |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/resources/snippets/gobject.snippets b/src/resources/snippets/gobject.snippets
index 0546231..bcbdc07 100644
--- a/src/resources/snippets/gobject.snippets
+++ b/src/resources/snippets/gobject.snippets
@@ -192,3 +192,16 @@ snippet gobj_prop
                             ${$2|space}   G_PARAM_STATIC_STRINGS));
        g_object_class_install_property (object_class, PROP_$1,
                                         gParamSpecs [PROP_$1]);
+snippet gsignal
+- scope c
+- desc Add GObject signal
+       gSignals [${$1|functify|upper}] =
+               g_signal_new ("${1:name}",
+                             G_TYPE_FROM_CLASS (klass),
+                             ${2:G_SIGNAL_RUN_LAST},
+                             ${3:0},
+                             ${4:NULL},
+                             ${5:NULL},
+                             ${6:g_cclosure_marshal_generic},
+                             ${7:G_TYPE_NONE},
+                             ${8:0});


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