CoverArt Browser  v2.0
Browse your cover-art albums in Rhythmbox
coverart_rb3compat.Action Class Reference

List of all members.

Public Member Functions

def __init__
def connect
def label
def label
def accel
def accel
def get_sensitive
def set_state
def activate
def set_active
def get_active
def associate_menuitem

Public Attributes

 shell
 action

Detailed Description

class that wraps around either a Gio.Action or a Gtk.Action

Definition at line 738 of file coverart_rb3compat.py.


Constructor & Destructor Documentation

def coverart_rb3compat.Action.__init__ (   self,
  shell,
  action 
)
constructor.

:param shell: `RBShell`
:param action: `Gio.Action` or `Gtk.Action`

Definition at line 743 of file coverart_rb3compat.py.


Member Function Documentation

get the accelerator associated with the Action

Definition at line 798 of file coverart_rb3compat.py.

invokes the activate signal for the action

Definition at line 830 of file coverart_rb3compat.py.

def coverart_rb3compat.Action.associate_menuitem (   self,
  menuitem 
)
links a menu with the action

Definition at line 870 of file coverart_rb3compat.py.

get the state of the action

returns `boolean` state value

Definition at line 857 of file coverart_rb3compat.py.

get the sensitivity (enabled/disabled) state of the Action

returns boolean

Definition at line 811 of file coverart_rb3compat.py.

get the menu label associated with the Action

for RB2.99+ actions dont have menu labels so this is managed
manually

Definition at line 778 of file coverart_rb3compat.py.

def coverart_rb3compat.Action.set_active (   self,
  value 
)
activate or deactivate a stateful action signal
For consistency with earlier RB versions, this will fire the 
activate signal for the action

:param value: `boolean` state value

Definition at line 839 of file coverart_rb3compat.py.

def coverart_rb3compat.Action.set_state (   self,
  value 
)
set the state of a stateful action - this is applicable only
to RB2.99+

Definition at line 822 of file coverart_rb3compat.py.


The documentation for this class was generated from the following file:
 All Classes Functions