diff options
author | marcus <marcus@FreeBSD.org> | 2003-12-18 16:09:02 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-12-18 16:09:02 +0800 |
commit | 16ca9d2bd81a8cb899b3da3d9b84043b93b2f7b3 (patch) | |
tree | b4485802237ac2cea344b9b6df0096504b08fa18 /audio/rhythmbox-devel/files | |
parent | 4e20c9c1ef03322f8bf0197491f775c3d2f5dbc0 (diff) | |
download | freebsd-ports-gnome-16ca9d2bd81a8cb899b3da3d9b84043b93b2f7b3.tar.gz freebsd-ports-gnome-16ca9d2bd81a8cb899b3da3d9b84043b93b2f7b3.tar.zst freebsd-ports-gnome-16ca9d2bd81a8cb899b3da3d9b84043b93b2f7b3.zip |
Update to 0.6.2.
Diffstat (limited to 'audio/rhythmbox-devel/files')
4 files changed, 88 insertions, 0 deletions
diff --git a/audio/rhythmbox-devel/files/patch-shell_rb-play-order-random-by-age.c b/audio/rhythmbox-devel/files/patch-shell_rb-play-order-random-by-age.c new file mode 100644 index 000000000000..6778884c75ef --- /dev/null +++ b/audio/rhythmbox-devel/files/patch-shell_rb-play-order-random-by-age.c @@ -0,0 +1,40 @@ +--- shell/rb-play-order-random-by-age.c.orig Thu Dec 18 02:59:50 2003 ++++ shell/rb-play-order-random-by-age.c Thu Dec 18 03:00:34 2003 +@@ -87,6 +87,7 @@ + rb_random_play_order_by_age_class_init (RBRandomPlayOrderByAgeClass *klass) + { + GObjectClass *object_class = G_OBJECT_CLASS (klass); ++ RBPlayOrderClass *porder = RB_PLAY_ORDER_CLASS (klass); + + parent_class = g_type_class_peek_parent (klass); + +@@ -94,7 +95,6 @@ + object_class->finalize = rb_random_play_order_by_age_finalize; + + +- RBPlayOrderClass *porder = RB_PLAY_ORDER_CLASS (klass); + porder->get_next = rb_random_play_order_by_age_get_next; + porder->go_next = rb_random_play_order_by_age_go_next; + porder->get_previous = rb_random_play_order_by_age_get_previous; +@@ -265,6 +265,8 @@ + RhythmDBEntry *result = NULL; + GArray *entries = get_entry_view_contents (entry_view); + int i; ++ double rnd; ++ double total_weight = 0; + + if (entries->len == 0) { + /* entry view empty */ +@@ -273,11 +275,10 @@ + + /* Algorithm due to treed */ + +- double total_weight = 0; + for (i=0; i<entries->len; ++i) { + total_weight += g_array_index (entries, EntryWeight, i).weight; + } +- double rnd = g_random_double_range (0, total_weight); ++ rnd = g_random_double_range (0, total_weight); + for (i=0; i<entries->len; ++i) { + if (rnd < g_array_index (entries, EntryWeight, i).weight) { + result = g_array_index (entries, EntryWeight, i).entry; diff --git a/audio/rhythmbox-devel/files/patch-shell_rb-play-order-random-equal-weights.c b/audio/rhythmbox-devel/files/patch-shell_rb-play-order-random-equal-weights.c new file mode 100644 index 000000000000..bc81e005e11c --- /dev/null +++ b/audio/rhythmbox-devel/files/patch-shell_rb-play-order-random-equal-weights.c @@ -0,0 +1,18 @@ +--- shell/rb-play-order-random-equal-weights.c.orig Thu Dec 18 02:59:09 2003 ++++ shell/rb-play-order-random-equal-weights.c Thu Dec 18 02:59:16 2003 +@@ -85,6 +85,7 @@ + rb_random_play_order_equal_weights_class_init (RBRandomPlayOrderEqualWeightsClass *klass) + { + GObjectClass *object_class = G_OBJECT_CLASS (klass); ++ RBPlayOrderClass *porder = RB_PLAY_ORDER_CLASS (klass); + + parent_class = g_type_class_peek_parent (klass); + +@@ -92,7 +93,6 @@ + object_class->finalize = rb_random_play_order_equal_weights_finalize; + + +- RBPlayOrderClass *porder = RB_PLAY_ORDER_CLASS (klass); + porder->get_next = rb_random_play_order_equal_weights_get_next; + porder->go_next = rb_random_play_order_equal_weights_go_next; + porder->get_previous = rb_random_play_order_equal_weights_get_previous; diff --git a/audio/rhythmbox-devel/files/patch-shell_rb-play-order-shuffle.c b/audio/rhythmbox-devel/files/patch-shell_rb-play-order-shuffle.c new file mode 100644 index 000000000000..33d0c3fcedb4 --- /dev/null +++ b/audio/rhythmbox-devel/files/patch-shell_rb-play-order-shuffle.c @@ -0,0 +1,17 @@ +--- shell/rb-play-order-shuffle.c.orig Thu Dec 18 02:58:17 2003 ++++ shell/rb-play-order-shuffle.c Thu Dec 18 02:58:34 2003 +@@ -111,13 +111,13 @@ + rb_shuffle_play_order_class_init (RBShufflePlayOrderClass *klass) + { + GObjectClass *object_class = G_OBJECT_CLASS (klass); ++ RBPlayOrderClass *porder = RB_PLAY_ORDER_CLASS (klass); + + parent_class = g_type_class_peek_parent (klass); + + object_class->constructor = rb_shuffle_play_order_constructor; + object_class->finalize = rb_shuffle_play_order_finalize; + +- RBPlayOrderClass *porder = RB_PLAY_ORDER_CLASS (klass); + porder->get_next = rb_shuffle_play_order_get_next; + porder->go_next = rb_shuffle_play_order_go_next; + porder->get_previous = rb_shuffle_play_order_get_previous; diff --git a/audio/rhythmbox-devel/files/patch-shell_rb-play-order.c b/audio/rhythmbox-devel/files/patch-shell_rb-play-order.c new file mode 100644 index 000000000000..5e7990b0038d --- /dev/null +++ b/audio/rhythmbox-devel/files/patch-shell_rb-play-order.c @@ -0,0 +1,13 @@ +--- shell/rb-play-order.c.orig Thu Dec 18 02:57:29 2003 ++++ shell/rb-play-order.c Thu Dec 18 02:57:41 2003 +@@ -195,9 +195,9 @@ + rb_play_order_get_entry_view (RBPlayOrder *porder) + { + RBShellPlayer *player = porder->priv->player; ++ RBSource *source = rb_shell_player_get_source (player); + if (player == NULL) + return NULL; +- RBSource *source = rb_shell_player_get_source (player); + if (source == NULL) + return NULL; + return rb_source_get_entry_view (source); |