RB.BrowserSource

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.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Box Gtk.Box RB.DisplayPage RB.DisplayPage Gtk.Box->RB.DisplayPage Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Box Gtk.Orientable->Gtk.Box Gtk.Widget->Gtk.Container RB.BrowserSource RB.BrowserSource RB.Source RB.Source RB.DisplayPage->RB.Source RB.Source->RB.BrowserSource

Subclasses:

RB.MediaPlayerSource

Methods

Inherited:

RB.Source (34), RB.DisplayPage (12), Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)

Structs:

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

has_drop_support ()

Virtual Methods

Inherited:

RB.Source (28), RB.DisplayPage (12), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

do_has_drop_support ()

do_pack_content (content)

do_show_entry_popup ()

Properties

Inherited:

RB.Source (10), RB.DisplayPage (5), Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)

Name

Type

Flags

Short Description

populate

bool

r/w/c

whether to populate the source

Child Properties

Inherited:

Gtk.Box (5)

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

RB.Source (3), RB.DisplayPage (2), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Fields

Inherited:

RB.Source (3), RB.DisplayPage (2), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Type

Access

Description

parent

RB.Source

r

Class Details

class RB.BrowserSource(*args, **kwargs)
Bases:

RB.Source

Abstract:

Yes

Structure:

RB.BrowserSourceClass

This class simplifies implementation of sources that include genre/artist/album browsers. It also handles searching (using the search box) and a few other UI niceties.

Instances of browser sources will use a query that will match all entries of the entry type assigned to the source, so it’s mostly suited for sources that have an entry type of their own.

has_drop_support()
Returns:

True if drop support should be activated

Return type:

bool

This is a virtual method that should be implemented by subclasses. It returns True if drag and drop target support for the source should be activated.

do_has_drop_support() virtual
Returns:

True if drop support should be activated

Return type:

bool

This is a virtual method that should be implemented by subclasses. It returns True if drag and drop target support for the source should be activated.

do_pack_content(content) virtual
Parameters:

content (Gtk.Widget) –

do_show_entry_popup() virtual

Property Details

RB.BrowserSource.props.populate
Name:

populate

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, CONSTRUCT

whether to populate the source