summaryrefslogtreecommitdiff
path: root/gobject
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2009-05-05 18:40:03 +0200
committerJürg Billeter <j@bitron.ch>2009-05-05 18:40:42 +0200
commita76e5a2ca5fb3c96a2d8cadfed77f302f859bb6c (patch)
tree40e4bc515e3dbe5509aeb6482b8c75d744b7dcc8 /gobject
parent4ad71140774c5947091ed3b188132b9b1e630092 (diff)
downloadvala-a76e5a2ca5fb3c96a2d8cadfed77f302f859bb6c.tar.gz
GIR writer: Do not use string.replace
GRegex requires GLib 2.14.
Diffstat (limited to 'gobject')
-rw-r--r--gobject/valagirwriter.vala3
1 files changed, 2 insertions, 1 deletions
diff --git a/gobject/valagirwriter.vala b/gobject/valagirwriter.vala
index 2dfc40922..63e9c3135 100644
--- a/gobject/valagirwriter.vala
+++ b/gobject/valagirwriter.vala
@@ -824,7 +824,8 @@ public class Vala.GIRWriter : CodeVisitor {
}
private string camel_case_to_canonical (string name) {
- return Symbol.camel_case_to_lower_case (name).replace ("_", "-");
+ string[] parts = Symbol.camel_case_to_lower_case (name).split ("_");
+ return string.joinv ("-", parts);
}
private bool check_accessibility (Symbol sym) {