aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-04-11 19:21:46 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-04-11 19:21:56 +0200
commit3c1e77d78964d79deafee79b65da1f11cdb98890 (patch)
tree34c71e39fbcacb53fa3cd51124ea872ebef880dd
parent31215aba327a9151638ccc5ac37666e6efca3bb2 (diff)
sim: fix signal emission
Signal should be emitted by the SIM object, not by the Modem object.
-rw-r--r--src/mm-sim.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mm-sim.c b/src/mm-sim.c
index 436c15d8..3e1ca46c 100644
--- a/src/mm-sim.c
+++ b/src/mm-sim.c
@@ -330,20 +330,20 @@ handle_enable_pin_context_free (HandleEnablePinContext *ctx)
}
static void
-after_enable_update_lock_info_ready (MMIfaceModem *self,
+after_enable_update_lock_info_ready (MMIfaceModem *modem,
GAsyncResult *res,
HandleEnablePinContext *ctx)
{
/* We just want to ensure that we tried to update the unlock
* retries, no big issue if it failed */
- mm_iface_modem_update_lock_info_finish (self, res, NULL);
+ mm_iface_modem_update_lock_info_finish (modem, res, NULL);
if (ctx->save_error) {
g_dbus_method_invocation_take_error (ctx->invocation, ctx->save_error);
ctx->save_error = NULL;
} else {
/* Signal about the new lock state */
- g_signal_emit (self, signals[SIGNAL_PIN_LOCK_ENABLED], 0, ctx->enabled);
+ g_signal_emit (ctx->self, signals[SIGNAL_PIN_LOCK_ENABLED], 0, ctx->enabled);
mm_gdbus_sim_complete_enable_pin (MM_GDBUS_SIM (ctx->self), ctx->invocation);
}