[gnome-builder/wip/libide] libide: use self instead of name based on filename
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide] libide: use self instead of name based on filename
- Date: Thu, 12 Mar 2015 05:49:58 +0000 (UTC)
commit 636522cbd896de2405ac41fd4849adebc9c5940d
Author: Christian Hergert <christian hergert me>
Date: Wed Mar 11 22:48:31 2015 -0700
libide: use self instead of name based on filename
data/snippets/c.snippets | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/data/snippets/c.snippets b/data/snippets/c.snippets
index d5f1f7e..6cdeccb 100644
--- a/data/snippets/c.snippets
+++ b/data/snippets/c.snippets
@@ -1,9 +1,9 @@
snippet fail
- scope c, chdr
- g_return_if_fail
(${1:`$filename|stripsuffix|functify|namespace|upper`_IS_`$filename|stripsuffix|class|functify|upper`
(`$filename|stripsuffix|instance`)});$0
+ g_return_if_fail
(${1:`$filename|stripsuffix|functify|namespace|upper`_IS_`$filename|stripsuffix|class|functify|upper`
(self)});$0
snippet vfail
- scope c, chdr
- g_return_val_if_fail
(${1:`$filename|stripsuffix|functify|namespace|upper`_IS_`$filename|stripsuffix|class|functify|upper`
(`$filename|stripsuffix|instance`)}, ${2:NULL});$0
+ g_return_val_if_fail
(${1:`$filename|stripsuffix|functify|namespace|upper`_IS_`$filename|stripsuffix|class|functify|upper`
(self)}, ${2:NULL});$0
snippet W
- scope c, chdr
GtkWidget *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]