libmm-common: print modes string with capitals for the acronyms

This commit is contained in:
Aleksander Morgado
2011-12-30 15:36:51 +01:00
parent 15079bcb2d
commit ebbfe9cb61

View File

@@ -123,11 +123,14 @@ mm_common_get_modes_string (MMModemMode mode)
it = it << 1) { it = it << 1) {
if (mode & it) { if (mode & it) {
GFlagsValue *value; GFlagsValue *value;
gchar *up;
value = g_flags_get_first_value (flags_class, it); value = g_flags_get_first_value (flags_class, it);
up = g_ascii_strup (value->value_nick, -1);
g_string_append_printf (str, "%s%s", g_string_append_printf (str, "%s%s",
first ? "" : ", ", first ? "" : ", ",
value->value_nick); up);
g_free (up);
if (first) if (first)
first = FALSE; first = FALSE;