RB.SourceToolbar¶
Subclasses: | None |
---|
Methods¶
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: - page (
RB.DisplayPage
) – aRB.DisplayPage
- accel_group (
Gtk.AccelGroup
) – aGtk.AccelGroup
to add accelerators to
Returns: the
RB.SourceToolbar
Return type: 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.- page (
-
add_search_entry
(placeholder)¶ Parameters: placeholder ( str
) – the placeholder text for the search entry (orNone
)Adds a search entry with no search type menu.
Parameters: - search_menu (
Gio.MenuModel
) – aGio.Menu
containing search items - search_action (
Gio.Action
) – theGio.Action
for search state
Adds a search entry to the toolbar.
- search_menu (
-
clear_search_entry
()¶ Clears the search entry text. Call this from RBSource:reset_filters.
-
classmethod
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