Gimp.ModuleDB

g GObject.GInterface GObject.GInterface Gio.ListModel Gio.ListModel GObject.GInterface->Gio.ListModel GObject.Object GObject.Object Gimp.ModuleDB Gimp.ModuleDB GObject.Object->Gimp.ModuleDB Gio.ListModel->Gimp.ModuleDB

Subclasses:

None

Methods

Inherited:

GObject.Object (37), Gio.ListModel (4)

Structs:

GObject.ObjectClass (5)

class

new (verbose)

get_load_inhibit ()

get_verbose ()

load (module_path)

refresh (module_path)

set_load_inhibit (load_inhibit)

set_verbose (verbose)

Virtual Methods

Inherited:

GObject.Object (7), Gio.ListModel (3)

Properties

None

Signals

Inherited:

GObject.Object (1), Gio.ListModel (1)

Fields

Inherited:

GObject.Object (1), Gio.ListModel (1)

Class Details

class Gimp.ModuleDB(**kwargs)
Bases:

GObject.Object, Gio.ListModel

Abstract:

No

Structure:

Gimp.ModuleDBClass

Keeps a list of Gimp.Module's found in a given searchpath.

classmethod new(verbose)
Parameters:

verbose (bool) – Pass True to enable debugging output.

Returns:

The new Gimp.ModuleDB instance.

Return type:

Gimp.ModuleDB

Creates a new Gimp.ModuleDB instance. The verbose parameter will be passed to the created Gimp.Module instances using Gimp.Module.new().

get_load_inhibit()
Returns:

the self's load_inhibit string.

Return type:

str

Return the GLib.SEARCHPATH_SEPARATOR delimited list of module filenames which are excluded from auto-loading.

get_verbose()
Returns:

the ‘verbose’ setting.

Return type:

bool

Returns the ‘verbose’ setting of self.

New in version 3.0.

load(module_path)
Parameters:

module_path (str) – A GLib.SEARCHPATH_SEPARATOR delimited list of directories to load modules from.

Scans the directories contained in module_path and creates a Gimp.Module instance for every loadable module contained in the directories.

refresh(module_path)
Parameters:

module_path (str) – A GLib.SEARCHPATH_SEPARATOR delimited list of directories to load modules from.

Does the same as Gimp.ModuleDB.load(), plus removes all Gimp.Module instances whose modules have been deleted from disk.

Note that the Gimp.Module's will just be removed from the internal list and not freed as this is not possible with GObject.TypeModule instances which actually implement types.

set_load_inhibit(load_inhibit)
Parameters:

load_inhibit (str) – A GLib.SEARCHPATH_SEPARATOR delimited list of module filenames to exclude from auto-loading.

Sets the load_inhibit flag for all Gimp.Module's which are kept by self (using gimp_module_set_load_inhibit()).

set_verbose(verbose)
Parameters:

verbose (bool) – the new ‘verbose’ setting

Sets the ‘verbose’ setting of self.

New in version 3.0.