RB.SourceToolbar¶
- 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 |
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Gtk.Grid (5), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
|
||
r/w/co |
|
Child Properties¶
- Inherited:
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class RB.SourceToolbar(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- 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.
- add_search_entry(placeholder)¶
-
Adds a search entry with no search type menu.
- Parameters:
search_menu (
Gio.MenuModel
) – aGio.Menu
containing search itemssearch_action (
Gio.Action
) – theGio.Action
for search state
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:
- Default Value:
- Flags:
The
Gtk.AccelGroup
to add accelerators to
- RB.SourceToolbar.props.page¶
- Name:
page
- Type:
- Default Value:
- Flags:
The
RB.DisplayPage
the toolbar is associated with