summaryrefslogtreecommitdiff
path: root/plugins/sharing
diff options
context:
space:
mode:
authorGiovanni Campagna <gcampagna@src.gnome.org>2014-06-25 12:15:56 +0200
committerBastien Nocera <hadess@hadess.net>2014-06-25 12:57:38 +0200
commit5ac12503b049006db5cb9acd14a9cbb8c74b52e6 (patch)
tree1c736d361c6ff5afce110a72d581660cd4b4e335 /plugins/sharing
parent5cfb8fd711bb5b5b93f519cf2c1248d251861f5a (diff)
downloadgnome-settings-daemon-5ac12503b049006db5cb9acd14a9cbb8c74b52e6.tar.gz
sharing: include wwan connection types as broadband
For wwan modems directly attached to the computer. https://bugzilla.gnome.org/show_bug.cgi?id=732218
Diffstat (limited to 'plugins/sharing')
-rw-r--r--plugins/sharing/gsd-sharing-manager.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/sharing/gsd-sharing-manager.c b/plugins/sharing/gsd-sharing-manager.c
index fae2601e..8457e238 100644
--- a/plugins/sharing/gsd-sharing-manager.c
+++ b/plugins/sharing/gsd-sharing-manager.c
@@ -584,7 +584,9 @@ primary_connection_changed (GObject *gobject,
if (!a_con) {
manager->priv->sharing_status = GSD_SHARING_STATUS_OFFLINE;
- } else if (g_str_equal (manager->priv->carrier_type, "bluetooth")) {
+ } else if (g_str_equal (manager->priv->carrier_type, "bluetooth") ||
+ g_str_equal (manager->priv->carrier_type, "gsm") ||
+ g_str_equal (manager->priv->carrier_type, "cdma")) {
manager->priv->sharing_status = GSD_SHARING_STATUS_DISABLED_MOBILE_BROADBAND;
} else if (g_str_equal (manager->priv->carrier_type, "802-11-wireless")) {
if (connection_is_low_security (manager, manager->priv->current_network))