nokia: fix class property overrides to stop modemmanager from sending AT+CFUN (lp:450256)

This commit is contained in:
Alexander Sack
2009-10-13 15:14:14 +02:00
committed by Alexander Sack
parent f4ada20709
commit 0bcdf6a7c1
+10
View File
@@ -83,6 +83,15 @@ mm_modem_nokia_init (MMModemNokia *self)
{
}
static void
set_property (GObject *object, guint prop_id,
const GValue *value, GParamSpec *pspec)
{
/* gobject does not like to just have get_property and seems to
* to not honour our overriden properties ... keep this as an empty
* func around */
}
static void
get_property (GObject *object, guint prop_id,
GValue *value, GParamSpec *pspec)
@@ -116,6 +125,7 @@ mm_modem_nokia_class_init (MMModemNokiaClass *klass)
mm_modem_nokia_parent_class = g_type_class_peek_parent (klass);
object_class->get_property = get_property;
object_class->set_property = set_property;
g_object_class_override_property (object_class,
MM_GENERIC_GSM_PROP_POWER_UP_CMD,