[gnome-builder] help: update workspace names



commit 642743301e9ab0ce21298be4765e19f80d9e7ed3
Author: Christian Hergert <chergert redhat com>
Date:   Tue Mar 12 15:19:32 2019 -0700

    help: update workspace names

 doc/help/plugins/workbench/actions.rst | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/doc/help/plugins/workbench/actions.rst b/doc/help/plugins/workbench/actions.rst
index 8176b4670..6a1e595b0 100644
--- a/doc/help/plugins/workbench/actions.rst
+++ b/doc/help/plugins/workbench/actions.rst
@@ -1,12 +1,12 @@
-Registering Workbench Actions
+Registering Workspace Actions
 =============================
 
-Using ``Gio.Action`` is a convenient way to attach actions to the workbench that contain state.
+Using ``Gio.Action`` is a convenient way to attach actions to the workspace that contain state.
 For example, maybe for use by a button that should be insensitive when it cannot be used.
-Additionally, actions registered on the workbench can be activated using the command bar plugin.
+Additionally, actions registered on the workspace can be activated using the command bar plugin.
 
 .. code-block:: python3
-   :caption: Registering an action on the workbench
+   :caption: Registering an action on the workspace
 
    import gi
 
@@ -14,29 +14,29 @@ Additionally, actions registered on the workbench can be activated using the com
    from gi.repository import Gio
    from gi.repository import Ide
 
-   class MyWorkbenchAddin(GObject.Object, Ide.WorkbenchAddin):
+   class MyWorkspaceAddin(GObject.Object, Ide.WorkspaceAddin):
 
-       def do_load(self, workbench):
+       def do_load(self, workspace):
            action = Gio.SimpleAction.new('hello', None)
            action.connect('activate', self.hello_activate)
-           workbench.add_action(action)
+           workspace.add_action(action)
 
            # If you have a lot of actions to add, you might
            # consider creating an action group.
            group = Gio.SimpleActionGroup.new()
            group.add_action(action)
-           workbench.insert_action_group('my-actions', group)
+           workspace.insert_action_group('my-actions', group)
 
-       def do_unload(self, workbench):
-           workbench.remove_action('hello')
+       def do_unload(self, workspace):
+           workspace.remove_action('hello')
 
            # And if you used an action group
-           workbench.insert_action_group('my-actions', None)
+           workspace.insert_action_group('my-actions', None)
 
        def hello_activate(self, action, param):
            print('Hello activated!')
 
-This adds a new action named ``hello`` to the workbench.
+This adds a new action named ``hello`` to the workspace.
 It can be connected to widgets by using the ``win.hello`` action-name.
 Additionally, you can call the action with ``hello`` from the command bar.
 


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