[gnome-builder] Add some pygobject snippets



commit b69f1f3d028e6272ed0164d4f29095cad107609e
Author: Patrick Griffis <tingping tingping se>
Date:   Mon Apr 20 19:46:59 2015 -0400

    Add some pygobject snippets
    
    https://bugzilla.gnome.org/show_bug.cgi?id=748221

 data/snippets/python.snippets |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/data/snippets/python.snippets b/data/snippets/python.snippets
index d86748b..fc9ae8e 100644
--- a/data/snippets/python.snippets
+++ b/data/snippets/python.snippets
@@ -18,4 +18,18 @@ snippet class
        class ${1:Foo}(${2:object}):
                def __init__(self${3}):
                        $0
+snippet gobject
+- scope python, python3
+       class ${1:Foo}(${2:GObject.Object}):
+               __gtype_name__ = "$1"
 
+               def __init__(self${3}):
+                       $2.__init__(self)
+                       $0
+snippet gsignal
+- desc Entry in __gsignals__ dictionary
+- scope python, python3
+       "${1:signal}": (GObject.${2:SIGNAL_RUN_FIRST}, ${3:None}, (${4:int,}))$0
+snippet gproperty
+- scope python, python3
+       ${1:foo} = GObject.property(type=${2:int}, default=${3:0})$0


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