zte: fix handling of Icera simple connect process

Yay for GInterface.
This commit is contained in:
Dan Williams
2011-02-01 22:52:34 -06:00
parent d1f4b07e0e
commit 8f223f45f9

View File

@@ -547,12 +547,13 @@ simple_connect (MMModemSimple *simple,
MMModemFn callback,
gpointer user_data)
{
MMModemZtePrivate *priv = MM_MODEM_ZTE_GET_PRIVATE (simple);
MMModemZte *self = MM_MODEM_ZTE (simple);
MMModemZtePrivate *priv = MM_MODEM_ZTE_GET_PRIVATE (self);
MMCallbackInfo *info = (MMCallbackInfo *) user_data;
MMModemSimple *parent_iface;
if (priv->is_icera)
mm_modem_icera_simple_connect (MM_MODEM_ICERA (simple), properties);
mm_modem_icera_simple_connect (MM_MODEM_ICERA (self), properties);
parent_iface = g_type_interface_peek_parent (MM_MODEM_SIMPLE_GET_INTERFACE (simple));
parent_iface->connect (MM_MODEM_SIMPLE (simple), properties, callback, info);