[gnome-builder] doc: update transfers example



commit bbec3231c449b42053d0a58244351eaf81def24c
Author: Christian Hergert <chergert redhat com>
Date:   Mon Sep 25 23:43:47 2017 -0700

    doc: update transfers example

 doc/plugins/transfers.rst |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/doc/plugins/transfers.rst b/doc/plugins/transfers.rst
index cd07e1f..2e554cc 100644
--- a/doc/plugins/transfers.rst
+++ b/doc/plugins/transfers.rst
@@ -47,10 +47,11 @@ which can be used to install packages on the host machine.
            return task.propagate_boolean()
 
 
-   # From your other plugin code, get the transfer manager for
-   # the Ide.Context and add queue the transfer.
+   # From your other plugin code, get the transfer manager and
+   # queue the transfer.
 
-   xfermgr = context.get_transfer_manager()
+   app = Gio.Application.get_default()
+   xfermgr = app.get_transfer_manager()
 
    xfer = MyTransfer(title='Downloading Foo')
    xfermgr.execute_async(xfer, None, None, None)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]