[gnome-builder/gnome-builder-3-18] snippets: move some C snippets to gobject.snippets



commit dafef6f44936de9149aad62175d07114800cf8cd
Author: Christian Hergert <christian hergert me>
Date:   Tue Sep 29 13:22:23 2015 -0700

    snippets: move some C snippets to gobject.snippets

 data/snippets/c.snippets       |   21 ---------------------
 data/snippets/gobject.snippets |   21 +++++++++++++++++++++
 2 files changed, 21 insertions(+), 21 deletions(-)
---
diff --git a/data/snippets/c.snippets b/data/snippets/c.snippets
index eb2bf63..d0b21e7 100644
--- a/data/snippets/c.snippets
+++ b/data/snippets/c.snippets
@@ -1,11 +1,3 @@
-snippet fail
-- desc Snippet for g_return_if_fail()
-- scope c, chdr
-       g_return_if_fail 
(${1:`$filename|stripsuffix|functify|namespace|upper`_IS_`$filename|stripsuffix|class|functify|upper` 
(self)});$0
-snippet vfail
-- desc Snippet for g_return_val_if_fail()
-- scope c, chdr
-       g_return_val_if_fail 
(${1:`$filename|stripsuffix|functify|namespace|upper`_IS_`$filename|stripsuffix|class|functify|upper` 
(self)}, ${2:NULL});$0
 snippet Widget
 - desc Quick definition for a GtkWidget local.
 - scope c, chdr
@@ -27,19 +19,6 @@ snippet Include
 - scope c, chdr
 - desc Include a file from the global include path.
        #include <${1}>$0
-snippet Private
-- desc Define a local for the GObject's private data.
-- scope c, chdr
-       ${$filename|stripsuffix|functify|camelize}Private *priv;$0
-snippet doc
-- scope c, chdr
-       /**
-        * ${$filename|stripsuffix|functify}_${1:func}:
-        *
-        * ${3}
-        *
-        * Returns: ${2}
-        */$0
 snippet Classname
 - scope c, chdr
        ${$filename|stripsuffix|functify|camelize} $0
diff --git a/data/snippets/gobject.snippets b/data/snippets/gobject.snippets
index f45aecf..9b009f2 100644
--- a/data/snippets/gobject.snippets
+++ b/data/snippets/gobject.snippets
@@ -214,3 +214,24 @@ snippet finish
 
                return g_task_propagate_${4:boolean} (task, error);
        }
+snippet Private
+- desc Define a local for the GObject's private data.
+- scope c, chdr
+       ${$filename|stripsuffix|functify|camelize}Private *priv = 
${$filename|stripsuffix|functify}_get_instance_private (self);$0
+snippet doc
+- scope c, chdr
+       /**
+        * ${$filename|stripsuffix|functify}_${1:func}:
+        *
+        * ${3}
+        *
+        * Returns: ${2}
+        */$0
+snippet fail
+- desc Snippet for g_return_if_fail()
+- scope c, chdr
+       g_return_if_fail 
(${1:`$filename|stripsuffix|functify|namespace|upper`_IS_`$filename|stripsuffix|class|functify|upper` 
(self)});$0
+snippet vfail
+- desc Snippet for g_return_val_if_fail()
+- scope c, chdr
+       g_return_val_if_fail 
(${1:`$filename|stripsuffix|functify|namespace|upper`_IS_`$filename|stripsuffix|class|functify|upper` 
(self)}, ${2:NULL});$0


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