RB.SourceToolbar

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.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Grid Gtk.Grid Gtk.Container->Gtk.Grid RB.SourceToolbar RB.SourceToolbar Gtk.Grid->RB.SourceToolbar Gtk.Orientable->Gtk.Grid Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

Gtk.Grid (21), 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)

class

new (page, accel_group)

add_search_entry (placeholder)

add_search_entry_menu (search_menu, search_action)

clear_search_entry ()

Virtual Methods

Inherited:

Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

Gtk.Grid (5), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)

Name

Type

Flags

Short Description

accel-group

Gtk.AccelGroup

r/w/co

Gtk.AccelGroup instance

page

RB.DisplayPage

r/w/co

RB.DisplayPage instance

Child Properties

Inherited:

Gtk.Grid (4)

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

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

Fields

Inherited:

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

Name

Type

Access

Description

parent

Gtk.Grid

r

Class Details

class RB.SourceToolbar(**kwargs)
Bases:

Gtk.Grid

Abstract:

No

Structure:

RB.SourceToolbarClass

classmethod new(page, accel_group)
Parameters:
Returns:

the RB.SourceToolbar

Return type:

RB.SourceToolbar

Creates a new source toolbar for page. The toolbar does not initially include a search entry. Call RB.SourceToolbar.add_search_entry to add one. The toolbar content comes from the RBSource:toolbar-menu property.

add_search_entry(placeholder)
Parameters:

placeholder (str) – the placeholder text for the search entry (or None)

Adds a search entry with no search type menu.

add_search_entry_menu(search_menu, search_action)
Parameters:

Adds a search entry to the toolbar.

clear_search_entry()

Clears the search entry text. Call this from RBSource:reset_filters.

Property Details

RB.SourceToolbar.props.accel_group
Name:

accel-group

Type:

Gtk.AccelGroup

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The Gtk.AccelGroup to add accelerators to

RB.SourceToolbar.props.page
Name:

page

Type:

RB.DisplayPage

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The RB.DisplayPage the toolbar is associated with