RCUiCellRendererRating

RCUiCellRendererRating — The rating cell renderer widget.

Synopsis

#include <rc-ui-cell-renderer-rating.h>

struct              RCUiCellRendererRating;
struct              RCUiCellRendererRatingClass;
GtkCellRenderer *   rc_ui_cell_renderer_rating_new      ();

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkCellRenderer
               +----RCUiCellRendererRating

Properties

  "rating"                   gfloat                : Read / Write

Signals

  "rated"                                          : Run Last

Description

The rating cell renderer widget used in list view.

Details

struct RCUiCellRendererRating

struct RCUiCellRendererRating;

struct RCUiCellRendererRatingClass

struct RCUiCellRendererRatingClass {
};

rc_ui_cell_renderer_rating_new ()

GtkCellRenderer *   rc_ui_cell_renderer_rating_new      ();

Create a cell renderer that will display some pixbufs for representing the rating of a song. It is also able to update the rating. This widget is copied form Rhythmbox.

Returns :

the new cell renderer

Property Details

The "rating" property

  "rating"                   gfloat                : 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: 3

Signal Details

The "rated" signal

void                user_function                      (RCUiCellRendererRating *renderer,
                                                        gchar                  *score,
                                                        gfloat                  path,
                                                        gpointer                user_data)      : Run Last

Emitted when the user changes the rating.

renderer :

the RCUiCellRendererRating

score :

the new rating

path :

string form of the GtkTreePath to the row that was changed

user_data :

user data set when the signal handler was connected.