Budgie.PopoverManager

g Budgie.PopoverManager Budgie.PopoverManager GObject.Object GObject.Object GObject.Object->Budgie.PopoverManager

Subclasses:None

Methods

Inherited:GObject.Object (37)
Structs:GObject.ObjectClass (5)
class new ()
  register_popover (parent_widget, popover)
  show_popover (parent_widget)
  unregister_popover (parent_widget)

Virtual Methods

Inherited:GObject.Object (7)

Properties

None

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)
Name Type Access Description
parent GObject.Object r  

Class Details

class Budgie.PopoverManager(**kwargs)
Bases:GObject.Object
Abstract:No
Structure:Budgie.PopoverManagerClass
classmethod new()
Returns:A pointer to a new Budgie.PopoverManager object.
Return type:Budgie.PopoverManager

Construct a new Budgie.PopoverManager object

register_popover(parent_widget, popover)
Parameters:
  • parent_widget (Gtk.Widget) – The widget that “owns” the popover (relative-to)
  • popover (Budgie.Popover) – The popover that will be shown when the parent_widget is activated

Register a new popover with it’s relative-to widget within the popover management system. This will allow the popover to be activated when it’s parent widget has been activated by a mouse roll over, when another widget is visible.

This allows the panel to provide a “menubar” like functionality for interaction with multiple popovers in a natural fashion.

show_popover(parent_widget)
Parameters:parent_widget (Gtk.Widget) – The widget owning the popover to be shown

Show a Budgie.Popover on screen belonging to the specified parent_widget

unregister_popover(parent_widget)
Parameters:parent_widget (Gtk.Widget) – The associated widget (key) for the registered popover

Unregister a popover so that it is no longer managed by this implementation, and is free to manage itself.