[brasero] Set the max value for the song properties end point button correctly



commit 768fc898e286831ec4135ab1ad5a049388e059ee
Author: Jonathan Matthew <jonathan d14n org>
Date:   Fri Jan 22 18:03:21 2010 +1000

    Set the max value for the song properties end point button correctly
    
    The end point is an absolute offset, not relative to the start of the
    track, so the maximum value is start point + track length.

 src/brasero-song-properties.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/brasero-song-properties.c b/src/brasero-song-properties.c
index 5c7fdef..94e67f5 100644
--- a/src/brasero-song-properties.c
+++ b/src/brasero-song-properties.c
@@ -414,7 +414,7 @@ brasero_song_props_set_properties (BraseroSongProps *self,
 	g_signal_handlers_block_by_func (self->priv->end,
 					 brasero_song_props_end_changed_cb,
 					 self);
-	brasero_time_button_set_max (BRASERO_TIME_BUTTON (self->priv->end), length);
+	brasero_time_button_set_max (BRASERO_TIME_BUTTON (self->priv->end), start + length);
 	brasero_time_button_set_value (BRASERO_TIME_BUTTON (self->priv->end), end);
 	g_signal_handlers_unblock_by_func (self->priv->end,
 	        			   brasero_song_props_end_changed_cb,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]