![]() |
![]() |
![]() |
Rhythmbox Development Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
struct RBSourceHeader; struct RBSourceHeaderClass; RBSourceHeader * rb_source_header_new (GtkUIManager *mgr
,GtkActionGroup *actiongroup
); void rb_source_header_set_source (RBSourceHeader *header
,RBSource *source
); void rb_source_header_clear_search (RBSourceHeader *header
); void rb_source_header_sync_control_state (RBSourceHeader *header
); void rb_source_header_focus_search_box (RBSourceHeader *header
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkTable +----RBSourceHeader
"action-group" GtkActionGroup* : Read / Write / Construct Only "source" RBSource* : Read / Write "ui-manager" GtkUIManager* : Read / Write / Construct Only
The source header contains the search box and the search action toolbar. It remembers the search text and browser visibility state for each source, applying the stored state for the newly selected source when the source selection changes.
The search bar contains a set of actions determined by the selected source. The source is responsible for tracking which search action is active.
struct RBSourceHeaderClass { GtkTableClass parent_class; /* action signal */ void (*refresh_search_bar) (RBSourceHeader *header); };
RBSourceHeader * rb_source_header_new (GtkUIManager *mgr
,GtkActionGroup *actiongroup
);
Creates the RBSourceHeader.
|
the GtkUIManager |
|
the GtkActionGroup to add actions to |
Returns : |
the RBSourceHeader instance |
void rb_source_header_set_source (RBSourceHeader *header
,RBSource *source
);
Updates the source header when a new source is selected.
|
the RBSourceHeader |
|
the new selected RBSource |
void rb_source_header_clear_search (RBSourceHeader *header
);
Clears the search box and resets all search state for the current selected source.
|
the RBSourceHeader |
void rb_source_header_sync_control_state (RBSourceHeader *header
);
Updates the sensitivity and active state of various actions related to the source header.
|
the RBSourceHeader |
void rb_source_header_focus_search_box (RBSourceHeader *header
);
Grabs input focus for the search box.
|
the RBSourceHeader |
"action-group"
property"action-group" GtkActionGroup* : Read / Write / Construct Only
The GtkActionGroup to add actions to.
"ui-manager"
property"ui-manager" GtkUIManager* : Read / Write / Construct Only
The GtkUIManager instance.
"get-search-actions"
signalGValueArray* user_function (RBSourceHeader *header,
RBSource *arg1,
gpointer user_data) : Run Last
Allows signal handlers to add search actions to the search bar by returning an array of search action names.
|
the RBSourceHeader |
|
user data set when the signal handler was connected. |
"refresh-search-bar"
signalvoid user_function (RBSourceHeader *header,
gpointer user_data) : Run Last
An action signal used to repopulate the search bar. This should be called after a signal handler for "get-search-actions" has been connected or disconnected.
|
the RBSourceHeader |
|
user data set when the signal handler was connected. |