Changeset 695
- Timestamp:
- 12/29/09 13:02:55 (2 years ago)
- Files:
-
- sweep/trunk/src/sweep_app.h (modified) (1 diff)
- sweep/trunk/src/sweep_sample.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sweep/trunk/src/sweep_app.h
r557 r695 259 259 gchar * last_tmp_message; 260 260 gint tmp_message_tag; 261 gint progress_ready_tag; 261 262 }; 262 263 sweep/trunk/src/sweep_sample.c
r693 r695 180 180 s->last_tmp_message = NULL; 181 181 s->tmp_message_tag = -1; 182 s->progress_ready_tag = -1; 182 183 183 184 return s; … … 627 628 sample_destroy (sw_sample * s) 628 629 { 630 sweep_timeout_remove (s->tmp_message_tag); 631 sweep_timeout_remove (s->progress_ready_tag); 632 629 633 stop_playback (s); 630 634 … … 731 735 rec_dialog_refresh_sample_list (); 732 736 sample_destroy(s); 733 s = NULL;737 s = NULL; 734 738 } 735 739 … … 1223 1227 s->last_tmp_message = g_strdup (buf); 1224 1228 1225 if (s->tmp_message_tag != -1) { 1226 sweep_timeout_remove (s->tmp_message_tag); 1227 } 1228 1229 sweep_timeout_remove (s->tmp_message_tag); 1229 1230 s->tmp_message_tag = 1230 1231 sweep_timeout_add ((guint32)5000, 1231 1232 (GtkFunction)sample_clear_tmp_message, s); 1232 1233 1233 sweep_timeout_add ((guint32)0, (GtkFunction)sample_set_progress_ready, s); 1234 sweep_timeout_remove (s->progress_ready_tag); 1235 s->progress_ready_tag = 1236 sweep_timeout_add ((guint32)0, (GtkFunction)sample_set_progress_ready, s); 1234 1237 } 1235 1238
