RB.ShellPreferences¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Dialog (14), Gtk.Window (119), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Gtk.Dialog (1), Gtk.Window (33), Gtk.Container (3), Gtk.Widget (39)
Style Properties¶
- Inherited:
Signals¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class RB.ShellPreferences(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The preferences dialog is built around a
Gtk.Notebook
widget, with two built-in pages and additional pages for various sources.The ‘general’ preferences page controls the set of browser views that are visible (artist and album; genre and artist; or genre, artist, and album), the columns that are visible, and the appearance of buttons in the main toolbar. The browser and column settings apply to all sources.
The ‘playback’ preferences page controls whether the crossfading player backend is used, and if enabled, the crossfade duration and network buffer size.
Currently, the library and podcast sources add pages to the notebook, for configuring the location and layout of the library and the podcast download location and update frequency.
- classmethod new(views)¶
- Parameters:
views ([
RB.Source
]) – list of sources to check for preferences pages- Returns:
the
RB.ShellPreferences
instance- Return type:
Creates the
RB.ShellPreferences
instance, populating it with the preferences pages for the sources in the list.
- add_widget(widget, location, expand, fill)¶
- Parameters:
widget (
Gtk.Widget
) – theGtk.Widget
to insert into the preferences windowlocation (
RB.ShellPrefsUILocation
) – the location at which to insert the widgetexpand (
bool
) – whether the widget should be given extra spacefill (
bool
) – whether the widget should fill all space allocated to it
Adds a widget to the preferences window. See
Gtk.Box.pack_start
for details on how the expand and fill parameters work. This function can be used to add widgets to the ‘general’ and ‘playback’ pages.
- append_page(name, widget)¶
- Parameters:
name (
str
) – name of the page to appendwidget (
Gtk.Widget
) – theGtk.Widget
to use as the contents of the page
Appends a new page to the preferences dialog notebook.
- remove_widget(widget, location)¶
- Parameters:
widget (
Gtk.Widget
) – theGtk.Widget
to remove from the preferences windowlocation (
RB.ShellPrefsUILocation
) – the UI location to which the widget was originally added
Removes a widget added with
RB.ShellPreferences.add_widget
from the preferences window.