Gtk.BuilderScopeInterface

Fields

Name

Type

Access

Description

create_closure

object

r

Create a closure with the given arguments. See Gtk.Builder.create_closure() for more details on those. The C implementation will try to use dlsym() to locate the function name and then g_cclosure_new() to create a closure for the symbol. The default implementation just fails and returns None.

g_iface

GObject.TypeInterface

r

get_type_from_function

object

r

Try to lookup a GType via the given function name, specified explicitly in a Gtk.Builder file, like via the “type-func” attribute in the <object> tag. This function is very rarely used. The C implementation will use dlsym() and call the resulting function as a GTypeFunc. The default implementation will fail and just return GObject.TYPE_INVALID.

get_type_from_name

object

r

Try to lookup a GType via the its name. See Gtk.Builder.get_type_from_name() for more details. The C implementation will use GObject.type_from_name() and if that fails try to guess the correct function name for registering the type and then use dlsym() to load it. The default implementation just tries GObject.type_from_name() and otherwise fails.

Methods

None

Details

class Gtk.BuilderScopeInterface

The virtual function table to implement for GtkBuilderScope implementations. Default implementations for each function do exist, but they usually just fail, so it is suggested that implementations implement all of them.