819 |
eSampleLoopType.set_ptr(NULL); |
eSampleLoopType.set_ptr(NULL); |
820 |
eSampleLoopPlayCount.set_ptr(NULL); |
eSampleLoopPlayCount.set_ptr(NULL); |
821 |
} |
} |
822 |
|
// updated enabled state of loop play count widget |
823 |
|
loop_infinite_toggled(); |
824 |
} |
} |
825 |
|
|
826 |
void DimRegionEdit::loop_infinite_toggled() { |
void DimRegionEdit::loop_infinite_toggled() { |
827 |
eSampleLoopPlayCount.set_sensitive(!eSampleLoopInfinite.get_active()); |
eSampleLoopPlayCount.set_sensitive( |
828 |
if (eSampleLoopInfinite.get_active()) eSampleLoopPlayCount.set_value(0); |
!eSampleLoopInfinite.get_active() && |
829 |
else eSampleLoopPlayCount.set_value(1); |
eSampleLoopEnabled.get_active() |
830 |
|
); |
831 |
|
if (eSampleLoopInfinite.get_active()) |
832 |
|
eSampleLoopPlayCount.set_value(0); |
833 |
|
else if (!eSampleLoopPlayCount.get_value()) |
834 |
|
eSampleLoopPlayCount.set_value(1); |
835 |
} |
} |