sound-juicer r2001 - in trunk: . src
- From: rburton svn gnome org
- To: svn-commits-list gnome org
- Subject: sound-juicer r2001 - in trunk: . src
- Date: Wed, 23 Jan 2008 16:20:25 +0000 (GMT)
Author: rburton
Date: Wed Jan 23 16:20:24 2008
New Revision: 2001
URL: http://svn.gnome.org/viewvc/sound-juicer?rev=2001&view=rev
Log:
2008-01-23 Ross Burton <ross burtonini com>
* src/sj-play.c:
When stopping check for valid ranges, to avoid warnings.
Modified:
trunk/ChangeLog
trunk/src/sj-play.c
Modified: trunk/src/sj-play.c
==============================================================================
--- trunk/src/sj-play.c (original)
+++ trunk/src/sj-play.c Wed Jan 23 16:20:24 2008
@@ -107,15 +107,15 @@
gtk_widget_hide (seek_scale);
gtk_widget_hide (volume_button);
sj_main_set_title (NULL);
- if (!gtk_tree_model_iter_nth_child (GTK_TREE_MODEL (track_store),
- ¤t_iter, NULL, current_track))
- return;
- gtk_list_store_set (track_store, ¤t_iter, COLUMN_STATE, STATE_IDLE, -1);
gtk_statusbar_push (GTK_STATUSBAR (statusbar), 0, "");
gtk_button_set_label (GTK_BUTTON (play_button), GTK_STOCK_MEDIA_PLAY);
slen = GST_CLOCK_TIME_NONE;
- current_track = -1;
+ if (current_track != -1 &&
+ gtk_tree_model_iter_nth_child (GTK_TREE_MODEL (track_store), ¤t_iter, NULL, current_track))
+ gtk_list_store_set (track_store, ¤t_iter, COLUMN_STATE, STATE_IDLE, -1);
+
+ current_track = -1;
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]