summaryrefslogtreecommitdiff
path: root/examples/example-service.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example-service.py')
-rwxr-xr-xexamples/example-service.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/example-service.py b/examples/example-service.py
index c42b526..af22577 100755
--- a/examples/example-service.py
+++ b/examples/example-service.py
@@ -30,7 +30,7 @@ python example-client.py --exit-service
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
-import gobject
+from gi.repository import GLib
import dbus
import dbus.service
@@ -77,7 +77,7 @@ if __name__ == '__main__':
name = dbus.service.BusName("com.example.SampleService", session_bus)
object = SomeObject(session_bus, '/SomeObject')
- mainloop = gobject.MainLoop()
+ mainloop = GLib.MainLoop()
print "Running example service."
print usage
mainloop.run()