diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-01-18 13:43:49 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:52 +0100 |
commit | 7e36f04b37c14a518370dd5be2e99b7c629b5214 (patch) | |
tree | c81193004d48ea09af12b0c3703860dc9ad6bddf /src/mm-iface-modem-simple.c | |
parent | 04fc34fab89483e9cfdaf7b273a867b72e622fbc (diff) |
core: use new enums/flags string getters/builders
Diffstat (limited to 'src/mm-iface-modem-simple.c')
-rw-r--r-- | src/mm-iface-modem-simple.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mm-iface-modem-simple.c b/src/mm-iface-modem-simple.c index 3e3a9153..ef66c88b 100644 --- a/src/mm-iface-modem-simple.c +++ b/src/mm-iface-modem-simple.c @@ -683,18 +683,12 @@ unlock_check_ready (MMIfaceModem *self, /* During simple connect we are only allowed to use SIM PIN */ if (lock != MM_MODEM_LOCK_SIM_PIN || !mm_common_connect_properties_get_pin (ctx->properties)) { - GEnumClass *enum_class; - GEnumValue *value; - - enum_class = G_ENUM_CLASS (g_type_class_ref (MM_TYPE_MODEM_LOCK)); - value = g_enum_get_value (enum_class, lock); g_dbus_method_invocation_return_error ( ctx->invocation, MM_CORE_ERROR, MM_CORE_ERROR_UNAUTHORIZED, "Modem is locked with '%s' code; cannot unlock it", - value->value_nick); - g_type_class_unref (enum_class); + mm_modem_lock_get_string (lock)); connection_context_free (ctx); return; } |