Peas.ExtensionBase

g GObject.Object GObject.Object Peas.ExtensionBase Peas.ExtensionBase GObject.Object->Peas.ExtensionBase

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_data_dir ()

get_plugin_info ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

data-dir

str

r

The full path of the directory where the plugin should look for its data files

plugin-info

Peas.PluginInfo

r/w/co

Information related to the current plugin

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class Peas.ExtensionBase(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

Peas.ExtensionBaseClass

Base class for C extensions.

get_data_dir()
Returns:

A newly allocated string with the path of the directory where the plugin should look for its data files

Return type:

str

Get the path of the directory where the plugin should look for its data files.

get_plugin_info()
Returns:

the [struct`PluginInfo`] relative to the Peas.ExtensionBase.

Return type:

Peas.PluginInfo

Get information relative to self.

Property Details

Peas.ExtensionBase.props.data_dir
Name:

data-dir

Type:

str

Default Value:

None

Flags:

READABLE

The The full path of the directory where the plugin should look for its data files.

Note: This is the same path as that returned by [method`PluginInfo`.get_data_dir].

Peas.ExtensionBase.props.plugin_info
Name:

plugin-info

Type:

Peas.PluginInfo

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The [struct`PluginInfo`] related to the current plugin.