UNIMPLEMENTED_connect_selection(layer_type,
bname)
| source code
|
Sets up a plain tool to automatically manage layer selection.
When layer_type is 0 and bname
NULL, plain tool stops automatically managing
selection (hopefully).
This method performs PlainTool.ensure_layer() and PlainTool.set_selection_key(), connecting to the
selection and making sure the selection field always
points to the correct selection object (or is
NULL).
The selection_changed method of
PlainToolClass is only invoked for a tool instance
once this method was called to set up the selection tracking.
- Parameters:
layer_type - Layer type. Use PlainTool.check_layer_type() in tool instance
initialization to check for layer types. (GType)
bname - Selection key base name, for example
<literal>"line"</literal>. (string)
|