From: Kouhei S. <ko...@co...> - 2007-08-09 11:26:58
|
Hi, I've committed new convenience GEnum/GFlags notation support into HEAD. Now, we can use :nick_name instead of ClassName::NICK_NAME. For example: GLib::UTF8.normalize(utf8, GLib::NormalizeMode::NFD) -> GLib::UTF8.normalize(utf8, :nfd) And we can use an array instead of '|' for GFlags. For example: key_file.load_from_data(data, GLib::KeyFile::KEEP_COMMENTS | GLib::KeyFile::KEEP_TRANSLATIONS) -> key_file.load_from_data(data, [:keep_contents, :keep_translations]) Thanks, -- kou |