udapted vi.po
[rhythmbox.git] / widgets / rb-rating.h
blob8e915cdb4d0599980bd2d06a9f9bc85999285d01
1 /*
2 * arch-tag: Header for rating renderer object
4 * Copyright (C) 2002 Olivier Martin <oleevye@wanadoo.fr>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef RB_RATING_H
23 #define RB_RATING_H
25 #include <gtk/gtkeventbox.h>
27 G_BEGIN_DECLS
29 #define RB_TYPE_RATING (rb_rating_get_type ())
30 #define RB_RATING(obj) (GTK_CHECK_CAST ((obj), RB_TYPE_RATING, RBRating))
31 #define RB_RATING_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), RB_TYPE_RATING, RBRatingClass))
32 #define RB_IS_RATING(obj) (GTK_CHECK_TYPE ((obj), RB_TYPE_RATING))
33 #define RB_IS_RATING_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), RB_TYPE_RATING))
35 typedef struct RBRatingPrivate RBRatingPrivate;
37 typedef struct
39 GtkEventBox parent;
41 RBRatingPrivate *priv;
42 } RBRating;
44 typedef struct
46 GtkEventBoxClass parent;
48 void (*rated) (RBRating *rating, double score);
49 } RBRatingClass;
51 GtkType rb_rating_get_type (void);
53 RBRating *rb_rating_new (void);
55 G_END_DECLS
57 #endif /* RB_RATING_H */