26
26
static double rb_random_equal_weights_get_entry_weight (RBRandomPlayOrder *rorder,
27
27
RhythmDB *db, RhythmDBEntry *entry);
29
static RBPlayOrderClass *parent_class = NULL;
32
rb_random_play_order_equal_weights_get_type (void)
34
static GType rb_random_play_order_equal_weights_type = 0;
36
if (rb_random_play_order_equal_weights_type == 0)
38
static const GTypeInfo our_info =
40
sizeof (RBRandomPlayOrderEqualWeightsClass),
43
(GClassInitFunc) rb_random_play_order_equal_weights_class_init,
46
sizeof (RBRandomPlayOrderEqualWeights),
51
rb_random_play_order_equal_weights_type = g_type_register_static (RB_TYPE_RANDOM_PLAY_ORDER,
52
"RBRandomPlayOrderEqualWeights",
56
return rb_random_play_order_equal_weights_type;
29
G_DEFINE_TYPE (RBRandomPlayOrderEqualWeights,
30
rb_random_play_order_equal_weights,
31
RB_TYPE_RANDOM_PLAY_ORDER)
60
34
rb_random_play_order_equal_weights_class_init (RBRandomPlayOrderEqualWeightsClass *klass)
62
36
RBRandomPlayOrderClass *rorder;
64
parent_class = g_type_class_peek_parent (klass);
66
38
rorder = RB_RANDOM_PLAY_ORDER_CLASS (klass);
67
39
rorder->get_entry_weight = rb_random_equal_weights_get_entry_weight;
79
51
return RB_PLAY_ORDER (rorder);
55
rb_random_play_order_equal_weights_init (RBRandomPlayOrderEqualWeights *porder)
83
60
rb_random_equal_weights_get_entry_weight (RBRandomPlayOrder *rorder, RhythmDB *db, RhythmDBEntry *entry)