Upgrade _matrix_g_enum_to_string() so it can convert dashes to any character

This commit is contained in:
2017-11-10 15:28:43 +01:00
parent 91fb94de91
commit cb170dc4d9
4 changed files with 6 additions and 6 deletions

View File

@@ -384,7 +384,7 @@ namespace Matrix {
/* Utilities */
[CCode (cheader_filename = "utils.h", cname = "_matrix_g_enum_to_string")]
public string? _g_enum_value_to_nick(GLib.Type enum_type, int value, bool convert_dashes = true);
public string? _g_enum_value_to_nick(GLib.Type enum_type, int value, char convert_dashes = '_');
[CCode (cheader_filename = "utils.h", cname = "_matrix_g_enum_nick_to_value")]
public int _g_enum_nick_to_value(GLib.Type enum_type, string nick)