[gnome-builder] snippets: set more reasonable defaults for gobject property
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] snippets: set more reasonable defaults for gobject property
- Date: Wed, 14 Jan 2015 22:51:58 +0000 (UTC)
commit 2011fe02076f57ab175428f9c45df2b7faba0aef
Author: Christian Hergert <christian hergert me>
Date: Wed Jan 14 14:51:05 2015 -0800
snippets: set more reasonable defaults for gobject property
This will use the name to default the other tab stops.
src/resources/snippets/gobject.snippets | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/resources/snippets/gobject.snippets b/src/resources/snippets/gobject.snippets
index 810b9d9..0546231 100644
--- a/src/resources/snippets/gobject.snippets
+++ b/src/resources/snippets/gobject.snippets
@@ -184,11 +184,11 @@ snippet gobj_prop
- scope c
- desc Add GObject property
gParamSpecs [PROP_${1:NAME}] =
- g_param_spec_${2:object} ("${3:name}",
- ${$2|space} _("${4:Name}"),
- ${$2|space} _("${5:Name}"),
+ g_param_spec_${2:object} ("${3:$1|lower}",
+ ${$2|space} _("${4:$3|camelize}"),
+ ${$2|space} _("${5:$3|camelize}"),
${$2|space} ${6}
${$2|space} (G_PARAM_${7:READWRITE} |
${$2|space} G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, PROP_$1,
- gParamSpecs [PROP_$1]);
\ No newline at end of file
+ gParamSpecs [PROP_$1]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]