![]() |
![]() |
![]() |
Rhythmbox Development Reference Manual | ![]() |
---|---|---|---|---|
rb-cell-renderer-ratingrb-cell-renderer-rating — a GtkCellRenderer for displaying song ratings |
RBCellRendererRating; RBCellRendererRatingClass; GtkCellRenderer* rb_cell_renderer_rating_new (void);
GObject +----GInitiallyUnowned +----GtkObject +----GtkCellRenderer +----RBCellRendererRating
This cell renderer is used to display song ratings in the RBEntryView, and allows the user to modify ratings directly in the track listing.
typedef struct { GtkCellRendererClass parent_class; void (*rated) (RBCellRendererRating *renderer, const char *path, double rating); RBCellRendererRatingClassPrivate *priv; } RBCellRendererRatingClass;
GtkCellRenderer* rb_cell_renderer_rating_new (void);
create a cell renderer that will display some pixbufs for representing the rating of a song. It is also able to update the rating.
Returns : |
the new cell renderer |
"rating"
property"rating" gdouble : Read / Write
The rating displayed by the renderer, as a floating point value between 0.0 and 5.0.
Allowed values: [0,5]
Default value: 2.5
"rated"
signalvoid user_function (RBCellRendererRating *renderer, gchar *score, gdouble path, gpointer user_data) : Run Last
Emitted when the user changes the rating.
|
the RBCellRendererRating |
|
the new rating |
|
string form of the GtkTreePath to the row that was changed |
|
user data set when the signal handler was connected. |