socketservice: add an "active" property
authorPaolo Borelli <pborelli@gnome.org>
Fri, 10 Jul 2015 19:30:28 +0000 (21:30 +0200)
committerPaolo Borelli <pborelli@gnome.org>
Sun, 19 Jul 2015 22:00:02 +0000 (00:00 +0200)
commite1d44799c0ba87506873c309ad4e16cce13bbfc4
tree12ce5d3c57c29993b0729db68adad7305c5e61a3
parenta223796d0b4f47277fe570313829376db0de8108
socketservice: add an "active" property

We already have start, stop and is_active methods, but turning it
into a real property is useful for a few reasons:
 - it allows us to bind the property to an UI or a setting
 - it allows us to get notified when the state changes
 - it allows us to instantiate objects directly in the stopped state

https://bugzilla.gnome.org/show_bug.cgi?id=752089
gio/gsocketservice.c
gio/tests/.gitignore
gio/tests/Makefile.am
gio/tests/socket-service.c [new file with mode: 0644]