udapted vi.po
[rhythmbox.git] / widgets / rb-cell-renderer-rating.h
blob471594143bee8cbfa5c8ac2e3803a1c823e521f4
1 /* rbcellrendererpixbuf.h
3 * arch-tag: Header for star rating GtkTreeView cell renderer
5 * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com>
6 * Copyright (C) 2002 Jorn Baayen <jorn@nl.linux.org>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the
20 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
21 * Boston, MA 02110-1301 USA.
24 #ifndef __RB_CELL_RENDERER_RATING_H
25 #define __RB_CELL_RENDERER_RATING_H
27 #include <gtk/gtkcellrenderer.h>
29 G_BEGIN_DECLS
31 #define RB_TYPE_CELL_RENDERER_RATING (rb_cell_renderer_rating_get_type ())
32 #define RB_CELL_RENDERER_RATING(obj) (GTK_CHECK_CAST ((obj), RB_TYPE_CELL_RENDERER_RATING, RBCellRendererRating))
33 #define RB_CELL_RENDERER_RATING_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), RB_TYPE_CELL_RENDERER_RATING, RBCellRendererRatingClass))
34 #define RB_IS_CELL_RENDERER_RATING(obj) (GTK_CHECK_TYPE ((obj), RB_TYPE_CELL_RENDERER_RATING))
35 #define RB_IS_CELL_RENDERER_RATING_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), RB_TYPE_CELL_RENDERER_RATING))
36 #define RB_CELL_RENDERER_RATING_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), RB_TYPE_CELL_RENDERER_RATING, RBCellRendererRatingClass))
38 typedef struct RBCellRendererRatingPrivate RBCellRendererRatingPrivate;
39 typedef struct RBCellRendererRatingClassPrivate RBCellRendererRatingClassPrivate;
41 typedef struct
43 GtkCellRenderer parent;
45 RBCellRendererRatingPrivate *priv;
46 } RBCellRendererRating;
48 typedef struct
50 GtkCellRendererClass parent_class;
52 void (*rated) (RBCellRendererRating *renderer, GtkTreePath *path, double rating);
54 RBCellRendererRatingClassPrivate *priv;
56 } RBCellRendererRatingClass;
58 GtkType rb_cell_renderer_rating_get_type (void);
60 GtkCellRenderer *rb_cell_renderer_rating_new (void);
62 G_END_DECLS
64 #endif /* __RB_CELL_RENDERER_RATING_H */