summaryrefslogtreecommitdiff
path: root/src/grl-source.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2014-12-04 22:42:52 +0100
committerBastien Nocera <hadess@hadess.net>2014-12-11 00:27:29 +0100
commitf30dccc9cdc732f3b4e84b68eae1ad68613e1b9b (patch)
tree2d3f5f9399cfc41469511eaba41a5e3b3e4a1495 /src/grl-source.c
parent8a583607a59395958169dbd2230ab39b90d59e81 (diff)
downloadgrilo-f30dccc9cdc732f3b4e84b68eae1ad68613e1b9b.tar.gz
core: Make sources network aware
If a source says that it requires the local network, or access to the Internet to work properly, automatically hide it when the network becomes unavailable, and show it when the network comes back on again. This is implemented using GNetworkManager's connectivity property. See https://bugzilla.gnome.org/show_bug.cgi?id=664562 Sources only need to set the "net:local" or "net:internet" tags to be shown/hidden from applications depending on the network status. https://bugzilla.gnome.org/show_bug.cgi?id=725148
Diffstat (limited to 'src/grl-source.c')
-rw-r--r--src/grl-source.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/grl-source.c b/src/grl-source.c
index a84f405..061f45b 100644
--- a/src/grl-source.c
+++ b/src/grl-source.c
@@ -455,6 +455,12 @@ grl_source_class_init (GrlSourceClass *source_class)
* avoid showing the user's own data in their interfaces, or integrate it
* in the user's local collection.
*
+ * "net:local", or "net:internet"
+ * The source requires a connection to the local network, or a connection
+ * to the Internet. Sources with those tags will be automatically hidden
+ * from the application's reach when such networks aren't available, or
+ * we're not connected to a network.
+ *
* Since: 0.2.10
*/
g_object_class_install_property (gobject_class,