28 lines
1012 B
Diff
28 lines
1012 B
Diff
|
From 2bee736df163b5ee28b13c85f7b63ba55be80415 Mon Sep 17 00:00:00 2001
|
||
|
From: Dan Williams <dcbw@redhat.com>
|
||
|
Date: Sun, 02 Jan 2011 00:00:50 +0000
|
||
|
Subject: 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.
|
||
|
---
|
||
|
diff --git a/src/modem-manager/nm-modem.c b/src/modem-manager/nm-modem.c
|
||
|
index e07b818..b3f7eaa 100644
|
||
|
--- a/src/modem-manager/nm-modem.c
|
||
|
+++ b/src/modem-manager/nm-modem.c
|
||
|
@@ -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);
|
||
|
+ }
|
||
|
}
|
||
|
|
||
|
/*****************************************************************************/
|
||
|
--
|
||
|
cgit v0.8.3-6-g21f6
|