PeasGtk.PluginManagerView

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.Scrollable Gtk.Scrollable GObject.GInterface->Gtk.Scrollable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.TreeView Gtk.TreeView Gtk.Container->Gtk.TreeView Gtk.Scrollable->Gtk.TreeView PeasGtk.PluginManagerView PeasGtk.PluginManagerView Gtk.TreeView->PeasGtk.PluginManagerView Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

Gtk.TreeView (98), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Scrollable (9)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new (engine)

get_selected_plugin ()

get_show_builtin ()

set_selected_plugin (info)

set_show_builtin (show_builtin)

Virtual Methods

Inherited:

Gtk.TreeView (15), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10), Gtk.Scrollable (1)

do_populate_popup (menu)

Properties

Inherited:

Gtk.TreeView (18), Gtk.Container (3), Gtk.Widget (39), Gtk.Scrollable (4)

Name

Type

Flags

Short Description

engine

Peas.Engine

r/w/co

The Peas.Engine this view is attached to

show-builtin

bool

d/r/w

If builtin plugins should be shown deprecated

Style Properties

Inherited:

Gtk.TreeView (11), Gtk.Widget (17)

Signals

Inherited:

Gtk.TreeView (15), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Short Description

populate-popup

Emitted before showing the context menu of the view.

Fields

Inherited:

Gtk.TreeView (15), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Type

Access

Description

parent

Gtk.TreeView

r

Class Details

class PeasGtk.PluginManagerView(*args, **kwargs)
Bases:

Gtk.TreeView

Abstract:

No

Structure:

PeasGtk.PluginManagerViewClass

The PeasGtk.PluginManagerView structure contains only private data and should only be accessed using the provided API.

classmethod new(engine)
Parameters:

engine (Peas.Engine or None) – A Peas.Engine, or None.

Returns:

the new PeasGtk.PluginManagerView.

Return type:

Gtk.Widget

Creates a new plugin manager view for the given [class`Peas`.Engine].

If engine is None, then the default engine will be used.

get_selected_plugin()
Returns:

the selected plugin.

Return type:

Peas.PluginInfo or None

Returns the currently selected plugin, or None if a plugin is not selected.

get_show_builtin()
Returns:

if builtin plugins should be shown.

Return type:

bool

Returns if builtin plugins should be shown.

Deprecated since version 1.2: Use hidden plugins instead.

set_selected_plugin(info)
Parameters:

info (Peas.PluginInfo) – A Peas.PluginInfo.

Selects the given plugin.

set_show_builtin(show_builtin)
Parameters:

show_builtin (bool) – If builtin plugins should be shown.

Sets if builtin plugins should be shown.

Deprecated since version 1.2: Use hidden plugins instead.

do_populate_popup(menu) virtual
Parameters:

menu (Gtk.Menu) –

Signal class handler for the PeasGtk.PluginManagerView ::populate-popup signal.

Signal Details

PeasGtk.PluginManagerView.signals.populate_popup(plugin_manager_view, menu)
Signal Name:

populate-popup

Flags:

RUN_LAST

Parameters:

Emitted before showing the context menu of the view.

If you need to add items to the context menu, connect to this signal and add your menuitems to the menu.

Property Details

PeasGtk.PluginManagerView.props.engine
Name:

engine

Type:

Peas.Engine

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The Peas.Engine this view is attached to

PeasGtk.PluginManagerView.props.show_builtin
Name:

show-builtin

Type:

bool

Default Value:

False

Flags:

DEPRECATED, READABLE, WRITABLE

If builtin plugins should be shown.

Deprecated since version 1.2: Use hidden plugins instead.