Top | Description | Object Hierarchy | Implemented Interfaces | ![]() |
![]() |
![]() |
![]() |
enum RBShellPrefsUILocation; struct RBShellPreferences; struct RBShellPreferencesClass; GtkWidget * rb_shell_preferences_new (GList *views
); void rb_shell_preferences_append_page (RBShellPreferences *prefs
,const char *name
,GtkWidget *widget
); void rb_shell_preferences_add_widget (RBShellPreferences *prefs
,GtkWidget *widget
,RBShellPrefsUILocation location
,gboolean expand
,gboolean fill
); void rb_shell_preferences_remove_widget (RBShellPreferences *prefs
,GtkWidget *widget
,RBShellPrefsUILocation location
);
GObject +----GInitiallyUnowned +----GtkWidget +----GtkContainer +----GtkBin +----GtkWindow +----GtkDialog +----RBShellPreferences
The preferences dialog is built around a GtkNotebook 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.
typedef enum { RB_SHELL_PREFS_UI_LOCATION_GENERAL, RB_SHELL_PREFS_UI_LOCATION_PLAYBACK } RBShellPrefsUILocation;
Locations available for adding new widgets to the preferences dialog.
GtkWidget * rb_shell_preferences_new (GList *views
);
Creates the RBShellPreferences instance, populating it with the preferences pages for the sources in the list.
|
list of sources to check for preferences pages. [element-type RB.Source][transfer none] |
Returns : |
the RBShellPreferences instance |
void rb_shell_preferences_append_page (RBShellPreferences *prefs
,const char *name
,GtkWidget *widget
);
Appends a new page to the preferences dialog notebook.
|
the RBShellPreferences instance |
|
name of the page to append |
|
the GtkWidget to use as the contents of the page |
void rb_shell_preferences_add_widget (RBShellPreferences *prefs
,GtkWidget *widget
,RBShellPrefsUILocation location
,gboolean expand
,gboolean fill
);
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.
|
the RBShellPreferences |
|
the GtkWidget to insert into the preferences window |
|
the location at which to insert the widget |
|
whether the widget should be given extra space |
|
whether the widget should fill all space allocated to it |
void rb_shell_preferences_remove_widget (RBShellPreferences *prefs
,GtkWidget *widget
,RBShellPrefsUILocation location
);
Removes a widget added with rb_shell_preferences_add_widget from the preferences window.
|
the RBShellPreferences |
|
the GtkWidget to remove from the preferences window |
|
the UI location to which the widget was originally added |