diff options
author | Alexander Sack <asac@jwsdot.com> | 2009-10-13 15:14:14 +0200 |
---|---|---|
committer | Alexander Sack <asac@ubuntu.com> | 2009-10-13 15:14:14 +0200 |
commit | 0bcdf6a7c105471b195203a4a9f065c3f7fbbc7e (patch) | |
tree | 61611b5e782b4f96a093539098d087c5878f0429 | |
parent | f4ada20709904ac563457bf0e155ab83958975bf (diff) |
nokia: fix class property overrides to stop modemmanager from sending AT+CFUN (lp:450256)
-rw-r--r-- | plugins/mm-modem-nokia.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/mm-modem-nokia.c b/plugins/mm-modem-nokia.c index f449dfd4..16784cb2 100644 --- a/plugins/mm-modem-nokia.c +++ b/plugins/mm-modem-nokia.c @@ -84,6 +84,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, |