modem: handle IP Method changes after modem has been created

Some modems don't know their IP method when they are created, but
will update it later.  Handle the changed signal for that.
This commit is contained in:
Dan Williams 2011-01-01 18:00:50 -06:00
parent 08ba12929d
commit 2bee736df1

View file

@ -876,6 +876,12 @@ modem_properties_changed (DBusGProxy *proxy,
priv->mm_enabled = g_value_get_boolean (value);
g_object_notify (G_OBJECT (self), NM_MODEM_ENABLED);
}
value = g_hash_table_lookup (props, "IpMethod");
if (value && G_VALUE_HOLDS_UINT (value)) {
priv->ip_method = g_value_get_uint (value);
g_object_notify (G_OBJECT (self), NM_MODEM_IP_METHOD);
}
}
/*****************************************************************************/