From 0bcdf6a7c105471b195203a4a9f065c3f7fbbc7e Mon Sep 17 00:00:00 2001 From: Alexander Sack Date: Tue, 13 Oct 2009 15:14:14 +0200 Subject: [PATCH] nokia: fix class property overrides to stop modemmanager from sending AT+CFUN (lp:450256) --- plugins/mm-modem-nokia.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 @@ -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,