diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-03-14 20:12:53 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-04-08 18:41:29 +0800 |
commit | e9a4efb7c5ce691e0547f72b8cc4eb7af6a62a2b (patch) | |
tree | 4c4cc73d28569346f781e412fc7a5bfd8d6f93e6 /libempathy-gtk | |
parent | 677794c3f65127c65aeda847982c3496404a35b9 (diff) | |
download | gsoc2013-empathy-e9a4efb7c5ce691e0547f72b8cc4eb7af6a62a2b.tar gsoc2013-empathy-e9a4efb7c5ce691e0547f72b8cc4eb7af6a62a2b.tar.gz gsoc2013-empathy-e9a4efb7c5ce691e0547f72b8cc4eb7af6a62a2b.tar.bz2 gsoc2013-empathy-e9a4efb7c5ce691e0547f72b8cc4eb7af6a62a2b.tar.lz gsoc2013-empathy-e9a4efb7c5ce691e0547f72b8cc4eb7af6a62a2b.tar.xz gsoc2013-empathy-e9a4efb7c5ce691e0547f72b8cc4eb7af6a62a2b.tar.zst gsoc2013-empathy-e9a4efb7c5ce691e0547f72b8cc4eb7af6a62a2b.zip |
Warn early if the CM doesn't implement a privacy setting
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-account-widget-skype.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-account-widget-skype.c b/libempathy-gtk/empathy-account-widget-skype.c index 44189d8c5..82eac4372 100644 --- a/libempathy-gtk/empathy-account-widget-skype.c +++ b/libempathy-gtk/empathy-account-widget-skype.c @@ -519,12 +519,19 @@ account_widget_build_skype_get_privacy_settings_cb (TpProxy *cm, GtkWidget *widget = GTK_WIDGET (gtk_builder_get_object (gui, widgets[i])); const char *prop_name = g_object_get_data (G_OBJECT (widget), "dbus-property"); + GValue *value; DEBUG ("Widget '%s' (%s), prop = %s", widgets[i], G_OBJECT_TYPE_NAME (widget), prop_name); - account_widget_skype_set_value (self, widget, - g_hash_table_lookup (props, prop_name)); + value = g_hash_table_lookup (props, prop_name); + if (value == NULL) + { + g_warning ("Couldn't get a value for %s", prop_name); + continue; + } + + account_widget_skype_set_value (self, widget, value); } } |