Panel.OmniBar¶
- Subclasses:
 None
Methods¶
- Inherited:
 Gtk.Widget (183), GObject.Object (37), Gtk.Accessible (17), Gtk.Buildable (1), Gtk.Actionable (5)
- Structs:
 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
Properties¶
- Inherited:
 
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
|||
r/w  | 
Icon Name  | 
||
r/w  | 
Menu Model  | 
||
r/w/en  | 
Popover  | 
||
r/w  | 
Progress bar fraction  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent_instance  | 
r  | 
Class Details¶
- class Panel.OmniBar(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
A multi-use widget for user interaction in the window header bar. You can add widgets, a popover to provide action items, an icon, updates on progress and pulse the main widget.
There is also a prefix and suffix area that can contain more widgets.
<picture> <source srcset=”omni-bar-dark.png” media=”(prefers-color-scheme: dark)”> <img src=”omni-bar.png” alt=”omni-bar”> </picture>
- classmethod new()¶
 - Returns:
 a newly created
Panel.OmniBar- Return type:
 
Create a new
Panel.OmniBar.
- add_prefix(priority, widget)¶
 - Parameters:
 priority (
int) – the prioritywidget (
Gtk.Widget) – the widget to add at the start.
Add a widget at the start of the container, ordered by priority. The highest the priority, the closest to the start.
- add_suffix(priority, widget)¶
 - Parameters:
 priority (
int) – the prioritywidget (
Gtk.Widget) – the widget to add toward the end.
Add a widget towards the end of the container, ordered by priority. The highest the priority, the closest to the start.
- get_popover()¶
 - Returns:
 a
Gtk.PopoverorNone- Return type:
 Gtk.PopoverorNone
Gets the current popover or
Noneif none is setup.
- get_progress()¶
 - Returns:
 the progress value.
- Return type:
 
Gets the progress value displayed in the omni bar.
- remove(widget)¶
 - Parameters:
 widget (
Gtk.Widget) – The widget to remove.
Removes a widget from the omni bar. Currently only prefix or suffix widgets are supported.
- set_popover(popover)¶
 - Parameters:
 popover (
Gtk.PopoverorNone) – aGtk.PopoverorNone
Sets the omnibar popover, that will appear when clicking on the omni bar.
- set_progress(progress)¶
 - Parameters:
 progress (
float) – the progress value
Sets the progress value displayed in the omni bar.
- start_pulsing()¶
 Starts pulsing the omni bar. Use panel_omni_bar_stop_pulsing to stop.
- stop_pulsing()¶
 Stops pulsing the omni bar, that was started with panel_omni_bar_start_pulsing.
Property Details¶
- Panel.OmniBar.props.action_tooltip¶
 - 
The tooltip for the action.
 
- Panel.OmniBar.props.icon_name¶
 - 
The name of the icon to use.
 
- Name:
 menu-model- Type:
 - Default Value:
 - Flags:
 
The menu model of the omni bar menu.
- Panel.OmniBar.props.popover¶
 - Name:
 popover- Type:
 - Default Value:
 - Flags:
 
The popover to show.